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

package com.azure.resourcemanager.apimanagement.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.apimanagement.fluent.models.SaveConfigurationParameterProperties;
import org.junit.jupiter.api.Assertions;

public final class SaveConfigurationParameterPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        SaveConfigurationParameterProperties model =
            BinaryData
                .fromString("{\"branch\":\"duiolh\",\"force\":true}")
                .toObject(SaveConfigurationParameterProperties.class);
        Assertions.assertEquals("duiolh", model.branch());
        Assertions.assertEquals(true, model.force());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        SaveConfigurationParameterProperties model =
            new SaveConfigurationParameterProperties().withBranch("duiolh").withForce(true);
        model = BinaryData.fromObject(model).toObject(SaveConfigurationParameterProperties.class);
        Assertions.assertEquals("duiolh", model.branch());
        Assertions.assertEquals(true, model.force());
    }
}
