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

package com.azure.resourcemanager.avs.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.avs.models.PlacementPoliciesList;

public final class PlacementPoliciesListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        PlacementPoliciesList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Enabled\",\"displayName\":\"pulpqblylsyxk\",\"provisioningState\":\"Canceled\"},\"id\":\"sjervti\",\"name\":\"gxsds\",\"type\":\"uem\"},{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Enabled\",\"displayName\":\"f\",\"provisioningState\":\"Canceled\"},\"id\":\"yvpnqicvinvkjj\",\"name\":\"dxrbuukzcle\",\"type\":\"yhmlwpaztzp\"},{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Disabled\",\"displayName\":\"kwyfzqwhxxbuyqax\",\"provisioningState\":\"Failed\"},\"id\":\"qztpp\",\"name\":\"iolxor\",\"type\":\"altol\"},{\"properties\":{\"type\":\"PlacementPolicyProperties\",\"state\":\"Disabled\",\"displayName\":\"obqwcsdbnwdcfh\",\"provisioningState\":\"Updating\"},\"id\":\"dpfuvg\",\"name\":\"sbjjc\",\"type\":\"nvxbvt\"}],\"nextLink\":\"dut\"}")
                .toObject(PlacementPoliciesList.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        PlacementPoliciesList model = new PlacementPoliciesList();
        model = BinaryData.fromObject(model).toObject(PlacementPoliciesList.class);
    }
}
