// 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;

public final class CloudServiceConfigurationTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        CloudServiceConfiguration model =
            BinaryData
                .fromString("{\"osFamily\":\"dzumveekg\",\"osVersion\":\"ozuhkfp\"}")
                .toObject(CloudServiceConfiguration.class);
        Assertions.assertEquals("dzumveekg", model.osFamily());
        Assertions.assertEquals("ozuhkfp", model.osVersion());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        CloudServiceConfiguration model =
            new CloudServiceConfiguration().withOsFamily("dzumveekg").withOsVersion("ozuhkfp");
        model = BinaryData.fromObject(model).toObject(CloudServiceConfiguration.class);
        Assertions.assertEquals("dzumveekg", model.osFamily());
        Assertions.assertEquals("ozuhkfp", model.osVersion());
    }
}
