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

public final class PolicyTrackedResourcesQueryResultsTests {
    @Test
    public void testDeserialize() {
        PolicyTrackedResourcesQueryResults model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"trackedResourceId\":\"quvgjxpybczme\",\"policyDetails\":{\"policyDefinitionId\":\"zopbsphrupidgs\",\"policyAssignmentId\":\"bejhphoycmsxa\",\"policyAssignmentDisplayName\":\"hdxbmtqio\",\"policyAssignmentScope\":\"zehtbmu\",\"policySetDefinitionId\":\"ownoizhw\",\"policyDefinitionReferenceId\":\"xybqsoqij\"},\"createdBy\":{\"deploymentId\":\"bpazlobcufpdzn\",\"deploymentTime\":\"2021-09-22T06:32:11Z\"},\"lastModifiedBy\":{\"deploymentId\":\"jnqglhqgnu\",\"deploymentTime\":\"2021-07-08T13:35:12Z\"},\"lastUpdateUtc\":\"2021-10-05T18:29:36Z\"},{\"trackedResourceId\":\"wifsq\",\"policyDetails\":{\"policyDefinitionId\":\"agdfmglzlh\",\"policyAssignmentId\":\"rifkwm\",\"policyAssignmentDisplayName\":\"ktsizntocipaou\",\"policyAssignmentScope\":\"psqucmpoyf\",\"policySetDefinitionId\":\"fogknygjofjdde\",\"policyDefinitionReferenceId\":\"rd\"},\"createdBy\":{\"deploymentId\":\"wnw\",\"deploymentTime\":\"2021-10-24T12:50:40Z\"},\"lastModifiedBy\":{\"deploymentId\":\"yflusarhmofc\",\"deploymentTime\":\"2021-07-19T23:58:55Z\"},\"lastUpdateUtc\":\"2021-01-26T19:26:10Z\"},{\"trackedResourceId\":\"kdtmlxhekuk\",\"policyDetails\":{\"policyDefinitionId\":\"xukcdmpar\",\"policyAssignmentId\":\"y\",\"policyAssignmentDisplayName\":\"nzwuxzd\",\"policyAssignmentScope\":\"a\",\"policySetDefinitionId\":\"lhmwhfpmrqobm\",\"policyDefinitionReferenceId\":\"kknryrtihf\"},\"createdBy\":{\"deploymentId\":\"bpzvgn\",\"deploymentTime\":\"2021-05-11T08:00:17Z\"},\"lastModifiedBy\":{\"deploymentId\":\"lzufcyzkohdbi\",\"deploymentTime\":\"2021-03-09T13:23:40Z\"},\"lastUpdateUtc\":\"2021-07-21T15:51:12Z\"}],\"nextLink\":\"fcbjysagithxqha\"}")
                .toObject(PolicyTrackedResourcesQueryResults.class);
    }

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