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

package com.azure.resourcemanager.synapse.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.synapse.fluent.models.KustoPoolPrivateLinkResourcesInner;
import com.azure.resourcemanager.synapse.models.PrivateLinkResources;
import java.util.Arrays;

public final class PrivateLinkResourcesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        PrivateLinkResources model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"groupId\":\"uipldqq\",\"requiredMembers\":[],\"requiredZoneNames\":[],\"provisioningState\":\"Canceled\"},\"id\":\"lblhtjq\",\"name\":\"qyv\",\"type\":\"eh\"}]}")
                .toObject(PrivateLinkResources.class);
    }

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