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

package com.azure.resourcemanager.operationsmanagement.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.operationsmanagement.models.ArmTemplateParameter;
import org.junit.jupiter.api.Assertions;

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

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