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

package com.azure.resourcemanager.batch.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.batch.models.CloudServiceConfiguration;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class CloudServiceConfigurationTests {
    @Test
    public void testDeserialize() {
        CloudServiceConfiguration model =
            BinaryData
                .fromString("{\"osFamily\":\"b\",\"osVersion\":\"ceopzfqrhhuaopp\"}")
                .toObject(CloudServiceConfiguration.class);
        Assertions.assertEquals("b", model.osFamily());
        Assertions.assertEquals("ceopzfqrhhuaopp", model.osVersion());
    }

    @Test
    public void testSerialize() {
        CloudServiceConfiguration model =
            new CloudServiceConfiguration().withOsFamily("b").withOsVersion("ceopzfqrhhuaopp");
        model = BinaryData.fromObject(model).toObject(CloudServiceConfiguration.class);
        Assertions.assertEquals("b", model.osFamily());
        Assertions.assertEquals("ceopzfqrhhuaopp", model.osVersion());
    }
}
