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

public final class PolicyMetadataCollectionTests {
    @Test
    public void testDeserialize() {
        PolicyMetadataCollection model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"metadataId\":\"qxwbpokulpiu\",\"category\":\"aasipqi\",\"title\":\"byuqerpqlp\",\"owner\":\"cciuqgbdbutau\",\"additionalContentUrl\":\"btkuwhh\"},\"id\":\"k\",\"type\":\"oxafn\",\"name\":\"lpichk\"},{\"properties\":{\"metadataId\":\"kcdyhbpk\",\"category\":\"wdreqnovvqfovl\",\"title\":\"ywsuwsy\",\"owner\":\"ndsytgadg\",\"additionalContentUrl\":\"aeaeneqnzarrw\"},\"id\":\"uijfqk\",\"type\":\"e\",\"name\":\"ipfpubji\"},{\"properties\":{\"metadataId\":\"iftohqkvpu\",\"category\":\"sgplsakn\",\"title\":\"fsynljphuop\",\"owner\":\"dlqiyntorzih\",\"additionalContentUrl\":\"osjswsr\"},\"id\":\"yzrpzbchckqqzq\",\"type\":\"xiy\",\"name\":\"iizynkedyatrwyh\"}],\"nextLink\":\"ibzyhwitsmyp\"}")
                .toObject(PolicyMetadataCollection.class);
    }

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