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

package com.azure.resourcemanager.appcontainers.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentStorageInner;
import com.azure.resourcemanager.appcontainers.fluent.models.ManagedEnvironmentStoragesCollectionInner;
import com.azure.resourcemanager.appcontainers.models.ManagedEnvironmentStorageProperties;
import java.util.Arrays;

public final class ManagedEnvironmentStoragesCollectionInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ManagedEnvironmentStoragesCollectionInner model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{},\"id\":\"if\",\"name\":\"zhmkdasvflyh\",\"type\":\"xcudchxgsr\"}]}")
                .toObject(ManagedEnvironmentStoragesCollectionInner.class);
    }

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