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

package com.azure.resourcemanager.netapp.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner;
import com.azure.resourcemanager.netapp.models.SubscriptionQuotaItemList;
import java.util.Arrays;

public final class SubscriptionQuotaItemListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SubscriptionQuotaItemList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"current\":411376072,\"default\":187934940},\"id\":\"tjaodxobnb\",\"name\":\"xkqpxo\",\"type\":\"ajionpimexgstxg\"}]}")
                .toObject(SubscriptionQuotaItemList.class);
    }

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