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

package com.azure.resourcemanager.synapse.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.synapse.fluent.models.EnvironmentVariableSetupTypeProperties;
import org.junit.jupiter.api.Assertions;

public final class EnvironmentVariableSetupTypePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        EnvironmentVariableSetupTypeProperties model =
            BinaryData
                .fromString("{\"variableName\":\"xls\",\"variableValue\":\"ihmxrfdsajredn\"}")
                .toObject(EnvironmentVariableSetupTypeProperties.class);
        Assertions.assertEquals("xls", model.variableName());
        Assertions.assertEquals("ihmxrfdsajredn", model.variableValue());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        EnvironmentVariableSetupTypeProperties model =
            new EnvironmentVariableSetupTypeProperties().withVariableName("xls").withVariableValue("ihmxrfdsajredn");
        model = BinaryData.fromObject(model).toObject(EnvironmentVariableSetupTypeProperties.class);
        Assertions.assertEquals("xls", model.variableName());
        Assertions.assertEquals("ihmxrfdsajredn", model.variableValue());
    }
}
