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

package com.azure.resourcemanager.hybridnetwork.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hybridnetwork.fluent.models.VendorInner;
import com.azure.resourcemanager.hybridnetwork.models.VendorListResult;
import java.util.Arrays;
import org.junit.jupiter.api.Test;

public final class VendorListResultTests {
    @Test
    public void testDeserialize() {
        VendorListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"skus\":[]},\"id\":\"jaoyfhrtx\",\"name\":\"lnerkujysvleju\",\"type\":\"fqawrlyxw\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"skus\":[]},\"id\":\"nwbxgjvtbvpyssz\",\"name\":\"nruj\",\"type\":\"guhmuouqfpr\"},{\"properties\":{\"provisioningState\":\"Failed\",\"skus\":[]},\"id\":\"uitnwuiz\",\"name\":\"a\",\"type\":\"x\"},{\"properties\":{\"provisioningState\":\"Failed\",\"skus\":[]},\"id\":\"kyfi\",\"name\":\"rfidfvzwdz\",\"type\":\"htymw\"}],\"nextLink\":\"dkfthwxmnt\"}")
                .toObject(VendorListResult.class);
    }

    @Test
    public void testSerialize() {
        VendorListResult model =
            new VendorListResult()
                .withValue(Arrays.asList(new VendorInner(), new VendorInner(), new VendorInner(), new VendorInner()));
        model = BinaryData.fromObject(model).toObject(VendorListResult.class);
    }
}
