// 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.AuthConfigInner;
import com.azure.resourcemanager.appcontainers.models.AuthConfigCollection;
import java.util.Arrays;

public final class AuthConfigCollectionTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AuthConfigCollection model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{},\"id\":\"xpyb\",\"name\":\"zm\",\"type\":\"hmtzopbsphrup\"},{\"properties\":{},\"id\":\"jhphoyc\",\"name\":\"sx\",\"type\":\"obhdxbmtqioqjze\"},{\"properties\":{},\"id\":\"wnoi\",\"name\":\"hwlrx\",\"type\":\"bqsoqijg\"}],\"nextLink\":\"mbpazlobcufpdzn\"}")
                .toObject(AuthConfigCollection.class);
    }

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