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

public final class AttestationListResultTests {
    @Test
    public void testDeserialize() {
        AttestationListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"policyAssignmentId\":\"sfraoyzko\",\"policyDefinitionReferenceId\":\"tlmngu\",\"complianceState\":\"Compliant\",\"expiresOn\":\"2021-09-07T06:52:28Z\",\"owner\":\"dsyuuximerqfob\",\"comments\":\"znkbykutwpfhpagm\",\"evidence\":[],\"provisioningState\":\"kdsnfdsdoakgtdl\",\"lastComplianceStateChangeAt\":\"2021-10-23T18:05:06Z\",\"assessmentDate\":\"2021-06-21T09:18:55Z\"},\"id\":\"l\",\"name\":\"ewpusdsttwvogvb\",\"type\":\"ejdcngqqmoakuf\"},{\"properties\":{\"policyAssignmentId\":\"m\",\"policyDefinitionReferenceId\":\"rwr\",\"complianceState\":\"Compliant\",\"expiresOn\":\"2020-12-27T08:20:19Z\",\"owner\":\"enuuzkopbm\",\"comments\":\"rfdwoyu\",\"evidence\":[],\"provisioningState\":\"iuiefozbhdmsm\",\"lastComplianceStateChangeAt\":\"2021-11-06T13:19:36Z\",\"assessmentDate\":\"2021-05-05T09:05:40Z\"},\"id\":\"trmaequiahxicslf\",\"name\":\"oqzpiyylha\",\"type\":\"nswhcc\"},{\"properties\":{\"policyAssignmentId\":\"ph\",\"policyDefinitionReferenceId\":\"ivwitqscywugg\",\"complianceState\":\"Compliant\",\"expiresOn\":\"2021-06-28T10:10:54Z\",\"owner\":\"zbwemh\",\"comments\":\"rsbrgzdwm\",\"evidence\":[],\"provisioningState\":\"ypqwdxggiccc\",\"lastComplianceStateChangeAt\":\"2021-07-21T16:23:57Z\",\"assessmentDate\":\"2021-08-27T14:08:45Z\"},\"id\":\"mkttlstvlzywem\",\"name\":\"zrncsdt\",\"type\":\"lusiy\"}],\"nextLink\":\"sfgytguslfead\"}")
                .toObject(AttestationListResult.class);
    }

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