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

package com.azure.resourcemanager.mediaservices.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.mediaservices.fluent.models.PrivateLinkResourceInner;
import com.azure.resourcemanager.mediaservices.fluent.models.PrivateLinkResourceListResultInner;
import java.util.Arrays;

public final class PrivateLinkResourceListResultInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        PrivateLinkResourceListResultInner model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"groupId\":\"ysou\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"canoaeupf\",\"name\":\"yhltrpmopjmcm\",\"type\":\"tuo\"},{\"properties\":{\"groupId\":\"fu\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"odsfcpkvxodpuozm\",\"name\":\"zydagfuaxbezyiuo\",\"type\":\"ktwh\"},{\"properties\":{\"groupId\":\"wz\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"sm\",\"name\":\"surex\",\"type\":\"moryocfsfksym\"}]}")
                .toObject(PrivateLinkResourceListResultInner.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        PrivateLinkResourceListResultInner model =
            new PrivateLinkResourceListResultInner()
                .withValue(
                    Arrays
                        .asList(
                            new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList()),
                            new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList()),
                            new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList())));
        model = BinaryData.fromObject(model).toObject(PrivateLinkResourceListResultInner.class);
    }
}
