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

package com.azure.resourcemanager.reservations.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.reservations.models.AvailableScopeRequestProperties;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;

public final class AvailableScopeRequestPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AvailableScopeRequestProperties model =
            BinaryData
                .fromString("{\"scopes\":[\"zopbsphrupidgs\",\"bb\",\"jhphoyc\",\"sx\"]}")
                .toObject(AvailableScopeRequestProperties.class);
        Assertions.assertEquals("zopbsphrupidgs", model.scopes().get(0));
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AvailableScopeRequestProperties model =
            new AvailableScopeRequestProperties().withScopes(Arrays.asList("zopbsphrupidgs", "bb", "jhphoyc", "sx"));
        model = BinaryData.fromObject(model).toObject(AvailableScopeRequestProperties.class);
        Assertions.assertEquals("zopbsphrupidgs", model.scopes().get(0));
    }
}
