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

public final class RemediationListResultTests {
    @Test
    public void testDeserialize() {
        RemediationListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"policyAssignmentId\":\"lfp\",\"policyDefinitionReferenceId\":\"s\",\"resourceDiscoveryMode\":\"ExistingNonCompliant\",\"provisioningState\":\"qux\",\"createdOn\":\"2021-08-27T02:48:22Z\",\"lastUpdatedOn\":\"2021-10-09T04:02:02Z\",\"statusMessage\":\"aoyfhrtxilnerkuj\",\"correlationId\":\"vlejuvfqa\",\"resourceCount\":1479576759,\"parallelDeployments\":1242969129},\"id\":\"kcprbnw\",\"name\":\"xgjvtbv\",\"type\":\"ysszdnrujqguh\"},{\"properties\":{\"policyAssignmentId\":\"uqfprwzw\",\"policyDefinitionReferenceId\":\"g\",\"resourceDiscoveryMode\":\"ExistingNonCompliant\",\"provisioningState\":\"wu\",\"createdOn\":\"2021-10-03T15:35:19Z\",\"lastUpdatedOn\":\"2021-02-12T15:23:48Z\",\"statusMessage\":\"izuckyfihrfidfvz\",\"correlationId\":\"zuhtymwisdkfthwx\",\"resourceCount\":61317803,\"parallelDeployments\":6933169},\"id\":\"opvkmijcm\",\"name\":\"xdcu\",\"type\":\"uf\"}],\"nextLink\":\"pymzidnsezcxtbzs\"}")
                .toObject(RemediationListResult.class);
    }

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