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

public final class PolicyTrackedResourceInnerTests {
    @Test
    public void testDeserialize() {
        PolicyTrackedResourceInner model =
            BinaryData
                .fromString(
                    "{\"trackedResourceId\":\"fpikxwczb\",\"policyDetails\":{\"policyDefinitionId\":\"npqxuh\",\"policyAssignmentId\":\"y\",\"policyAssignmentDisplayName\":\"iwbybrkxvdumjg\",\"policyAssignmentScope\":\"fwvuk\",\"policySetDefinitionId\":\"audccsnhs\",\"policyDefinitionReferenceId\":\"nyejhkryhtnap\"},\"createdBy\":{\"policyDetails\":{\"policyDefinitionId\":\"okjye\",\"policyAssignmentId\":\"kvnipjoxz\",\"policyAssignmentDisplayName\":\"chgejspodm\",\"policyAssignmentScope\":\"lzydehojwyahux\",\"policySetDefinitionId\":\"pmqnja\",\"policyDefinitionReferenceId\":\"ixjsprozvcputeg\"},\"deploymentId\":\"wmfdatscmdvpjhul\",\"deploymentTime\":\"2021-11-19T18:36:28Z\"},\"lastModifiedBy\":{\"policyDetails\":{\"policyDefinitionId\":\"jozkrwfndiod\",\"policyAssignmentId\":\"slwejdpvw\",\"policyAssignmentDisplayName\":\"oqpsoa\",\"policyAssignmentScope\":\"tazak\",\"policySetDefinitionId\":\"lahbcryff\",\"policyDefinitionReferenceId\":\"dosyg\"},\"deploymentId\":\"paojakhmsbzjh\",\"deploymentTime\":\"2020-12-24T16:45:21Z\"},\"lastUpdateUtc\":\"2021-04-18T16:59:04Z\"}")
                .toObject(PolicyTrackedResourceInner.class);
    }

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