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

package com.azure.resourcemanager.dynatrace.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.dynatrace.fluent.models.MetricsStatusResponseInner;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;

public final class MetricsStatusResponseInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MetricsStatusResponseInner model =
            BinaryData
                .fromString("{\"azureResourceIds\":[\"m\",\"coofsxlzev\"]}")
                .toObject(MetricsStatusResponseInner.class);
        Assertions.assertEquals("m", model.azureResourceIds().get(0));
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        MetricsStatusResponseInner model =
            new MetricsStatusResponseInner().withAzureResourceIds(Arrays.asList("m", "coofsxlzev"));
        model = BinaryData.fromObject(model).toObject(MetricsStatusResponseInner.class);
        Assertions.assertEquals("m", model.azureResourceIds().get(0));
    }
}
