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

package com.azure.resourcemanager.avs.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.avs.models.ClusterList;

public final class ClusterListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ClusterList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"sku\":{\"name\":\"ag\"},\"properties\":{\"clusterSize\":230289658,\"provisioningState\":\"Cancelled\",\"clusterId\":683816537,\"hosts\":[\"hahvljuahaq\",\"hcdhmdual\",\"exq\",\"vfadmws\"]},\"id\":\"crgvxpvgom\",\"name\":\"lf\",\"type\":\"isgwbnbbeldawkz\"},{\"sku\":{\"name\":\"ali\"},\"properties\":{\"clusterSize\":952194839,\"provisioningState\":\"Deleting\",\"clusterId\":391809232,\"hosts\":[\"ashsfwxos\",\"w\",\"xcug\"]},\"id\":\"cjooxdjebwpucwwf\",\"name\":\"ovbvmeueciv\",\"type\":\"hzceuojgjrwjue\"},{\"sku\":{\"name\":\"otwmcdyt\"},\"properties\":{\"clusterSize\":384724385,\"provisioningState\":\"Canceled\",\"clusterId\":1070997174,\"hosts\":[\"wgqwgxhn\",\"skxfbk\",\"y\"]},\"id\":\"gklwn\",\"name\":\"nhjdauw\",\"type\":\"vylwzbtdhxuj\"},{\"sku\":{\"name\":\"nbmpowuwprzq\"},\"properties\":{\"clusterSize\":97995700,\"provisioningState\":\"Cancelled\",\"clusterId\":683546621,\"hosts\":[\"khfxobbcswsrt\"]},\"id\":\"riplrbpbewtg\",\"name\":\"fgb\",\"type\":\"c\"}],\"nextLink\":\"xzvlvqhjkbegib\"}")
                .toObject(ClusterList.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ClusterList model = new ClusterList();
        model = BinaryData.fromObject(model).toObject(ClusterList.class);
    }
}
