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

package com.azure.resourcemanager.workloads.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.workloads.fluent.models.SapLandscapeMonitorInner;
import com.azure.resourcemanager.workloads.fluent.models.SapLandscapeMonitorListResultInner;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;

public final class SapLandscapeMonitorListResultInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SapLandscapeMonitorListResultInner model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"topMetricsThresholds\":[]},\"id\":\"ibahwflus\",\"name\":\"dtmhrkwofyyvoqa\",\"type\":\"piexpbtgiw\"}],\"nextLink\":\"oenwashr\"}")
                .toObject(SapLandscapeMonitorListResultInner.class);
        Assertions.assertEquals("oenwashr", model.nextLink());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        SapLandscapeMonitorListResultInner model =
            new SapLandscapeMonitorListResultInner()
                .withValue(Arrays.asList(new SapLandscapeMonitorInner().withTopMetricsThresholds(Arrays.asList())))
                .withNextLink("oenwashr");
        model = BinaryData.fromObject(model).toObject(SapLandscapeMonitorListResultInner.class);
        Assertions.assertEquals("oenwashr", model.nextLink());
    }
}
