// 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.models.ScriptSecureStringExecutionParameter;
import org.junit.jupiter.api.Assertions;

public final class ScriptSecureStringExecutionParameterTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ScriptSecureStringExecutionParameter model =
            BinaryData
                .fromString("{\"type\":\"SecureValue\",\"secureValue\":\"ossxk\",\"name\":\"gthrrghxjbdhq\"}")
                .toObject(ScriptSecureStringExecutionParameter.class);
        Assertions.assertEquals("gthrrghxjbdhq", model.name());
        Assertions.assertEquals("ossxk", model.secureValue());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ScriptSecureStringExecutionParameter model =
            new ScriptSecureStringExecutionParameter().withName("gthrrghxjbdhq").withSecureValue("ossxk");
        model = BinaryData.fromObject(model).toObject(ScriptSecureStringExecutionParameter.class);
        Assertions.assertEquals("gthrrghxjbdhq", model.name());
        Assertions.assertEquals("ossxk", model.secureValue());
    }
}
