// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.datalakeanalytics.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.datalakeanalytics.models.AddDataLakeStoreWithAccountParameters;
import org.junit.jupiter.api.Assertions;

public final class AddDataLakeStoreWithAccountParametersTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AddDataLakeStoreWithAccountParameters model =
            BinaryData
                .fromString("{\"name\":\"zxtheotusivyevcc\",\"properties\":{\"suffix\":\"hn\"}}")
                .toObject(AddDataLakeStoreWithAccountParameters.class);
        Assertions.assertEquals("zxtheotusivyevcc", model.name());
        Assertions.assertEquals("hn", model.suffix());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AddDataLakeStoreWithAccountParameters model =
            new AddDataLakeStoreWithAccountParameters().withName("zxtheotusivyevcc").withSuffix("hn");
        model = BinaryData.fromObject(model).toObject(AddDataLakeStoreWithAccountParameters.class);
        Assertions.assertEquals("zxtheotusivyevcc", model.name());
        Assertions.assertEquals("hn", model.suffix());
    }
}
