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

package com.azure.resourcemanager.hdinsight.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hdinsight.models.RegionsCapability;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class RegionsCapabilityTests {
    @Test
    public void testDeserialize() {
        RegionsCapability model =
            BinaryData.fromString("{\"available\":[\"jhfjxwm\"]}").toObject(RegionsCapability.class);
        Assertions.assertEquals("jhfjxwm", model.available().get(0));
    }

    @Test
    public void testSerialize() {
        RegionsCapability model = new RegionsCapability().withAvailable(Arrays.asList("jhfjxwm"));
        model = BinaryData.fromObject(model).toObject(RegionsCapability.class);
        Assertions.assertEquals("jhfjxwm", model.available().get(0));
    }
}
