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

package com.azure.resourcemanager.dashboard.generated;

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

public final class PrivateLinkResourceInnerTests {
    @Test
    public void testDeserialize() {
        PrivateLinkResourceInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"provisioningState\":\"Succeeded\",\"groupId\":\"ftutqxlngxlefgu\",\"requiredMembers\":[\"krxd\",\"mi\"],\"requiredZoneNames\":[\"hzrvqd\"]},\"id\":\"bhj\",\"name\":\"big\",\"type\":\"h\"}")
                .toObject(PrivateLinkResourceInner.class);
        Assertions.assertEquals("hzrvqd", model.requiredZoneNames().get(0));
    }

    @Test
    public void testSerialize() {
        PrivateLinkResourceInner model = new PrivateLinkResourceInner().withRequiredZoneNames(Arrays.asList("hzrvqd"));
        model = BinaryData.fromObject(model).toObject(PrivateLinkResourceInner.class);
        Assertions.assertEquals("hzrvqd", model.requiredZoneNames().get(0));
    }
}
