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

public final class CheckRestrictionsResultInnerTests {
    @Test
    public void testDeserialize() {
        CheckRestrictionsResultInner model =
            BinaryData
                .fromString(
                    "{\"fieldRestrictions\":[{\"field\":\"imjwosyt\",\"restrictions\":[]},{\"field\":\"skfc\",\"restrictions\":[]},{\"field\":\"miekkezzikhlyfjh\",\"restrictions\":[]},{\"field\":\"gebdunygaeq\",\"restrictions\":[]}],\"contentEvaluationResult\":{\"policyEvaluations\":[{\"evaluationResult\":\"xllrxcyjm\"},{\"evaluationResult\":\"uvarmywdmjsjq\"}]}}")
                .toObject(CheckRestrictionsResultInner.class);
    }

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