// 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.RemediationDeploymentsListResult;
import org.junit.jupiter.api.Test;

public final class RemediationDeploymentsListResultTests {
    @Test
    public void testDeserialize() {
        RemediationDeploymentsListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"remediatedResourceId\":\"nhungbw\",\"deploymentId\":\"rnfygxgispem\",\"status\":\"zfkufubljofx\",\"resourceLocation\":\"ofjaeqjhqjb\",\"createdOn\":\"2021-08-17T04:19:07Z\",\"lastUpdatedOn\":\"2021-08-25T14:25:06Z\"},{\"remediatedResourceId\":\"qulngsntnbybkzgc\",\"deploymentId\":\"wclxxwrl\",\"status\":\"ouskcqvkocrc\",\"resourceLocation\":\"kwt\",\"createdOn\":\"2021-08-17T00:59:03Z\",\"lastUpdatedOn\":\"2020-12-31T19:07:05Z\"}],\"nextLink\":\"iksqr\"}")
                .toObject(RemediationDeploymentsListResult.class);
    }

    @Test
    public void testSerialize() {
        RemediationDeploymentsListResult model = new RemediationDeploymentsListResult();
        model = BinaryData.fromObject(model).toObject(RemediationDeploymentsListResult.class);
    }
}
