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

package com.azure.resourcemanager.hdinsight.generated;

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

public final class ExcludedServicesConfigTests {
    @Test
    public void testDeserialize() {
        ExcludedServicesConfig model =
            BinaryData
                .fromString(
                    "{\"excludedServicesConfigId\":\"jiwkuofoskghsau\",\"excludedServicesList\":\"mjmvxieduugidyjr\"}")
                .toObject(ExcludedServicesConfig.class);
        Assertions.assertEquals("jiwkuofoskghsau", model.excludedServicesConfigId());
        Assertions.assertEquals("mjmvxieduugidyjr", model.excludedServicesList());
    }

    @Test
    public void testSerialize() {
        ExcludedServicesConfig model =
            new ExcludedServicesConfig()
                .withExcludedServicesConfigId("jiwkuofoskghsau")
                .withExcludedServicesList("mjmvxieduugidyjr");
        model = BinaryData.fromObject(model).toObject(ExcludedServicesConfig.class);
        Assertions.assertEquals("jiwkuofoskghsau", model.excludedServicesConfigId());
        Assertions.assertEquals("mjmvxieduugidyjr", model.excludedServicesList());
    }
}
