// 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.NetworkFunctionVendorInner;
import com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionVendorListResult;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class NetworkFunctionVendorListResultTests {
    @Test
    public void testDeserialize() {
        NetworkFunctionVendorListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"vendorName\":\"fksymddystki\",\"skuList\":[]}}],\"nextLink\":\"hqyudxorrqnbpoc\"}")
                .toObject(NetworkFunctionVendorListResult.class);
        Assertions.assertEquals("fksymddystki", model.value().get(0).vendorName());
    }

    @Test
    public void testSerialize() {
        NetworkFunctionVendorListResult model =
            new NetworkFunctionVendorListResult()
                .withValue(
                    Arrays
                        .asList(
                            new NetworkFunctionVendorInner()
                                .withVendorName("fksymddystki")
                                .withSkuList(Arrays.asList())));
        model = BinaryData.fromObject(model).toObject(NetworkFunctionVendorListResult.class);
        Assertions.assertEquals("fksymddystki", model.value().get(0).vendorName());
    }
}
