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

package com.azure.resourcemanager.appcomplianceautomation.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.appcomplianceautomation.models.Control;
import org.junit.jupiter.api.Test;

public final class ControlTests {
    @Test
    public void testDeserialize() {
        Control model =
            BinaryData
                .fromString(
                    "{\"controlId\":\"hctbqvudwxdn\",\"controlShortName\":\"vo\",\"controlFullName\":\"ujjugwdkcglh\",\"controlType\":\"Manual\",\"controlDescription\":\"jdyggdtji\",\"controlDescriptionHyperLink\":\"b\",\"controlStatus\":\"NotApplicable\",\"assessments\":[{\"name\":\"e\",\"severity\":\"Low\",\"description\":\"enevfyexfwhybci\",\"remediation\":\"yvdcsitynnaa\",\"isPass\":\"True\",\"policyId\":\"tehfiqscjeypvh\",\"resourceList\":[]},{\"name\":\"gqhcjrefovg\",\"severity\":\"Medium\",\"description\":\"leyyvx\",\"remediation\":\"jpkcattpng\",\"isPass\":\"False\",\"policyId\":\"czsqpjhvm\",\"resourceList\":[]},{\"name\":\"nysounqe\",\"severity\":\"Low\",\"description\":\"ae\",\"remediation\":\"fhyhltrpmopjmcma\",\"isPass\":\"True\",\"policyId\":\"thfuiuaodsfcpkvx\",\"resourceList\":[]}]}")
                .toObject(Control.class);
    }

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