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

package com.azure.resourcemanager.policyinsights.generated;

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

public final class RemediationFiltersTests {
    @Test
    public void testDeserialize() {
        RemediationFilters model =
            BinaryData
                .fromString("{\"locations\":[\"qw\",\"bmdg\",\"bjf\",\"dgmb\"]}")
                .toObject(RemediationFilters.class);
        Assertions.assertEquals("qw", model.locations().get(0));
    }

    @Test
    public void testSerialize() {
        RemediationFilters model = new RemediationFilters().withLocations(Arrays.asList("qw", "bmdg", "bjf", "dgmb"));
        model = BinaryData.fromObject(model).toObject(RemediationFilters.class);
        Assertions.assertEquals("qw", model.locations().get(0));
    }
}
