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

package com.azure.resourcemanager.hdinsight.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hdinsight.models.ScriptAction;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class ScriptActionTests {
    @Test
    public void testDeserialize() {
        ScriptAction model =
            BinaryData
                .fromString("{\"name\":\"mbmbexppbh\",\"uri\":\"q\",\"parameters\":\"rolfpfp\"}")
                .toObject(ScriptAction.class);
        Assertions.assertEquals("mbmbexppbh", model.name());
        Assertions.assertEquals("q", model.uri());
        Assertions.assertEquals("rolfpfp", model.parameters());
    }

    @Test
    public void testSerialize() {
        ScriptAction model = new ScriptAction().withName("mbmbexppbh").withUri("q").withParameters("rolfpfp");
        model = BinaryData.fromObject(model).toObject(ScriptAction.class);
        Assertions.assertEquals("mbmbexppbh", model.name());
        Assertions.assertEquals("q", model.uri());
        Assertions.assertEquals("rolfpfp", model.parameters());
    }
}
