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

public final class ClusterMonitoringResponseInnerTests {
    @Test
    public void testDeserialize() {
        ClusterMonitoringResponseInner model =
            BinaryData
                .fromString("{\"clusterMonitoringEnabled\":true,\"workspaceId\":\"imejzanl\"}")
                .toObject(ClusterMonitoringResponseInner.class);
        Assertions.assertEquals(true, model.clusterMonitoringEnabled());
        Assertions.assertEquals("imejzanl", model.workspaceId());
    }

    @Test
    public void testSerialize() {
        ClusterMonitoringResponseInner model =
            new ClusterMonitoringResponseInner().withClusterMonitoringEnabled(true).withWorkspaceId("imejzanl");
        model = BinaryData.fromObject(model).toObject(ClusterMonitoringResponseInner.class);
        Assertions.assertEquals(true, model.clusterMonitoringEnabled());
        Assertions.assertEquals("imejzanl", model.workspaceId());
    }
}
