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

public final class PolicyDetailsTests {
    @Test
    public void testDeserialize() {
        PolicyDetails model =
            BinaryData
                .fromString(
                    "{\"policyDefinitionId\":\"phlxa\",\"policyAssignmentId\":\"thqt\",\"policyAssignmentDisplayName\":\"qjbpfzfsin\",\"policyAssignmentScope\":\"v\",\"policySetDefinitionId\":\"jrwzox\",\"policyDefinitionReferenceId\":\"tfell\"}")
                .toObject(PolicyDetails.class);
    }

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