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

package com.azure.resourcemanager.devtestlabs.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.devtestlabs.models.ParameterInfo;
import org.junit.jupiter.api.Assertions;

public final class ParameterInfoTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ParameterInfo model =
            BinaryData
                .fromString("{\"name\":\"oizpostmgrcfbun\",\"value\":\"fqjhhkxbpvjymj\"}")
                .toObject(ParameterInfo.class);
        Assertions.assertEquals("oizpostmgrcfbun", model.name());
        Assertions.assertEquals("fqjhhkxbpvjymj", model.value());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ParameterInfo model = new ParameterInfo().withName("oizpostmgrcfbun").withValue("fqjhhkxbpvjymj");
        model = BinaryData.fromObject(model).toObject(ParameterInfo.class);
        Assertions.assertEquals("oizpostmgrcfbun", model.name());
        Assertions.assertEquals("fqjhhkxbpvjymj", model.value());
    }
}
