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

package com.azure.resourcemanager.hdinsight.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hdinsight.fluent.models.PrivateLinkResourceInner;
import com.azure.resourcemanager.hdinsight.fluent.models.PrivateLinkResourceListResultInner;
import java.util.Arrays;
import org.junit.jupiter.api.Test;

public final class PrivateLinkResourceListResultInnerTests {
    @Test
    public void testDeserialize() {
        PrivateLinkResourceListResultInner model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"groupId\":\"ip\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"oqonma\",\"name\":\"jeknizshq\",\"type\":\"cimpevfg\"},{\"properties\":{\"groupId\":\"rrilbywdxsmic\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"fscjfnynszquji\",\"name\":\"dvoqyt\",\"type\":\"byowbblgyavutp\"},{\"properties\":{\"groupId\":\"oxoismsksbpim\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"jxkcgxxlxsff\",\"name\":\"cvizqzdwlvw\",\"type\":\"youpfgfbkj\"},{\"properties\":{\"groupId\":\"yhgk\",\"requiredMembers\":[],\"requiredZoneNames\":[]},\"id\":\"sgow\",\"name\":\"fttsttk\",\"type\":\"lahb\"}]}")
                .toObject(PrivateLinkResourceListResultInner.class);
    }

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