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

package com.azure.resourcemanager.networkcloud.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.networkcloud.fluent.models.RackSkuInner;
import com.azure.resourcemanager.networkcloud.models.RackSkuList;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;

public final class RackSkuListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        RackSkuList model =
            BinaryData
                .fromString(
                    "{\"nextLink\":\"zpfrla\",\"value\":[{\"properties\":{\"computeMachines\":[],\"controllerMachines\":[],\"description\":\"oiindfpwpjy\",\"maxClusterSlots\":1464641146056052310,\"provisioningState\":\"Succeeded\",\"rackType\":\"Compute\",\"storageAppliances\":[],\"supportedRackSkuIds\":[]},\"id\":\"dhszfjv\",\"name\":\"bgofeljag\",\"type\":\"qmqhldvriii\"}]}")
                .toObject(RackSkuList.class);
        Assertions.assertEquals("zpfrla", model.nextLink());
    }

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