// 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.ComputeIsolationProperties;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class ComputeIsolationPropertiesTests {
    @Test
    public void testDeserialize() {
        ComputeIsolationProperties model =
            BinaryData
                .fromString("{\"enableComputeIsolation\":false,\"hostSku\":\"rfidfvzwdz\"}")
                .toObject(ComputeIsolationProperties.class);
        Assertions.assertEquals(false, model.enableComputeIsolation());
        Assertions.assertEquals("rfidfvzwdz", model.hostSku());
    }

    @Test
    public void testSerialize() {
        ComputeIsolationProperties model =
            new ComputeIsolationProperties().withEnableComputeIsolation(false).withHostSku("rfidfvzwdz");
        model = BinaryData.fromObject(model).toObject(ComputeIsolationProperties.class);
        Assertions.assertEquals(false, model.enableComputeIsolation());
        Assertions.assertEquals("rfidfvzwdz", model.hostSku());
    }
}
