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

public final class PreviewSubscriptionsListTests {
    @Test
    public void testDeserialize() {
        PreviewSubscriptionsList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"pfhyhl\",\"name\":\"rpmopjmc\",\"type\":\"atuokthfuiu\"}],\"nextLink\":\"dsfcpkvxodpuoz\"}")
                .toObject(PreviewSubscriptionsList.class);
    }

    @Test
    public void testSerialize() {
        PreviewSubscriptionsList model =
            new PreviewSubscriptionsList().withValue(Arrays.asList(new PreviewSubscriptionInner()));
        model = BinaryData.fromObject(model).toObject(PreviewSubscriptionsList.class);
    }
}
