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

public final class PolicyMetadataInnerTests {
    @Test
    public void testDeserialize() {
        PolicyMetadataInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"description\":\"rpkhjwn\",\"requirements\":\"qsluicp\",\"metadataId\":\"gk\",\"category\":\"lvmbmpaxmodfvuef\",\"title\":\"sbpfvmwyhr\",\"owner\":\"uyfta\",\"additionalContentUrl\":\"cpwi\"},\"id\":\"qtmnubexkpzk\",\"type\":\"ondjmq\",\"name\":\"vypomgkopkwho\"}")
                .toObject(PolicyMetadataInner.class);
    }

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