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

package com.azure.resourcemanager.recoveryservicesbackup.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.recoveryservicesbackup.models.ClientScriptForConnect;
import org.junit.jupiter.api.Assertions;

public final class ClientScriptForConnectTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ClientScriptForConnect model =
            BinaryData
                .fromString(
                    "{\"scriptContent\":\"qnrmvvfko\",\"scriptExtension\":\"lghktuidvrm\",\"osType\":\"lpdwwexymzvlazi\",\"url\":\"hpwvqsgnyyuu\",\"scriptNameSuffix\":\"vensrpm\"}")
                .toObject(ClientScriptForConnect.class);
        Assertions.assertEquals("qnrmvvfko", model.scriptContent());
        Assertions.assertEquals("lghktuidvrm", model.scriptExtension());
        Assertions.assertEquals("lpdwwexymzvlazi", model.osType());
        Assertions.assertEquals("hpwvqsgnyyuu", model.url());
        Assertions.assertEquals("vensrpm", model.scriptNameSuffix());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ClientScriptForConnect model =
            new ClientScriptForConnect()
                .withScriptContent("qnrmvvfko")
                .withScriptExtension("lghktuidvrm")
                .withOsType("lpdwwexymzvlazi")
                .withUrl("hpwvqsgnyyuu")
                .withScriptNameSuffix("vensrpm");
        model = BinaryData.fromObject(model).toObject(ClientScriptForConnect.class);
        Assertions.assertEquals("qnrmvvfko", model.scriptContent());
        Assertions.assertEquals("lghktuidvrm", model.scriptExtension());
        Assertions.assertEquals("lpdwwexymzvlazi", model.osType());
        Assertions.assertEquals("hpwvqsgnyyuu", model.url());
        Assertions.assertEquals("vensrpm", model.scriptNameSuffix());
    }
}
