// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.security.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.security.models.GovernanceRuleList;

public final class GovernanceRuleListTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        GovernanceRuleList model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"tenantId\":\"p\",\"displayName\":\"bkdq\",\"description\":\"dzsylollgtrczz\",\"remediationTimeframe\":\"mxzjijpvua\",\"isGracePeriod\":true,\"rulePriority\":153071773,\"isDisabled\":false,\"ruleType\":\"Integrated\",\"sourceResourceType\":\"Assessments\",\"excludedScopes\":[],\"conditionSets\":[],\"includeMemberScopes\":true},\"id\":\"rdcoxnbkkj\",\"name\":\"nurnnq\",\"type\":\"nqbpi\"},{\"properties\":{\"tenantId\":\"ltgrdogypxrxv\",\"displayName\":\"fihwu\",\"description\":\"ctafsrbxrblm\",\"remediationTimeframe\":\"owxih\",\"isGracePeriod\":false,\"rulePriority\":491471659,\"isDisabled\":true,\"ruleType\":\"ServiceNow\",\"sourceResourceType\":\"Assessments\",\"excludedScopes\":[],\"conditionSets\":[],\"includeMemberScopes\":true},\"id\":\"aklsbsbq\",\"name\":\"qagwwrxaomz\",\"type\":\"sgl\"},{\"properties\":{\"tenantId\":\"zezkhhltnjadh\",\"displayName\":\"oawjqoyueay\",\"description\":\"pcmsplbyrrueqth\",\"remediationTimeframe\":\"gnmbscbbxigdhx\",\"isGracePeriod\":false,\"rulePriority\":1518081378,\"isDisabled\":true,\"ruleType\":\"Integrated\",\"sourceResourceType\":\"Assessments\",\"excludedScopes\":[],\"conditionSets\":[],\"includeMemberScopes\":true},\"id\":\"qyybxubmdnafcbq\",\"name\":\"remj\",\"type\":\"laqacigele\"},{\"properties\":{\"tenantId\":\"bvqvwzkjopwbeo\",\"displayName\":\"r\",\"description\":\"wzdqybxceakxcpts\",\"remediationTimeframe\":\"fyiaseqch\",\"isGracePeriod\":true,\"rulePriority\":375914410,\"isDisabled\":false,\"ruleType\":\"Integrated\",\"sourceResourceType\":\"Assessments\",\"excludedScopes\":[],\"conditionSets\":[],\"includeMemberScopes\":false},\"id\":\"iuemvanbwzohmnr\",\"name\":\"xbsojkli\",\"type\":\"hmdp\"}],\"nextLink\":\"sprqsgnzxojpslsv\"}")
                .toObject(GovernanceRuleList.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        GovernanceRuleList model = new GovernanceRuleList();
        model = BinaryData.fromObject(model).toObject(GovernanceRuleList.class);
    }
}
