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

package com.azure.resourcemanager.avs.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.avs.fluent.models.ScriptCmdletInner;

public final class ScriptCmdletInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ScriptCmdletInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"description\":\"yodnwzxltj\",\"timeout\":\"nhltiugcxn\",\"parameters\":[{\"type\":\"Bool\",\"name\":\"ibyqunyowxwlmdj\",\"description\":\"vfgbvfvpdboda\",\"visibility\":\"Visible\",\"optional\":\"Optional\"},{\"type\":\"Credential\",\"name\":\"krribdeibqi\",\"description\":\"kghv\",\"visibility\":\"Hidden\",\"optional\":\"Optional\"},{\"type\":\"Credential\",\"name\":\"efajpj\",\"description\":\"wkqnyhg\",\"visibility\":\"Visible\",\"optional\":\"Required\"}]},\"id\":\"ivfxzsjabibsyst\",\"name\":\"wfsdjpvkvpbj\",\"type\":\"bkzbzkd\"}")
                .toObject(ScriptCmdletInner.class);
    }

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