// 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.models.LoginScopes;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;

public final class LoginScopesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        LoginScopes model =
            BinaryData
                .fromString("{\"scopes\":[\"ktapspwgcuertu\",\"kdosvqw\",\"bmdg\",\"bjf\"]}")
                .toObject(LoginScopes.class);
        Assertions.assertEquals("ktapspwgcuertu", model.scopes().get(0));
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        LoginScopes model = new LoginScopes().withScopes(Arrays.asList("ktapspwgcuertu", "kdosvqw", "bmdg", "bjf"));
        model = BinaryData.fromObject(model).toObject(LoginScopes.class);
        Assertions.assertEquals("ktapspwgcuertu", model.scopes().get(0));
    }
}
