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

package com.azure.resourcemanager.mysqlflexibleserver.generated;

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

public final class ConfigurationForBatchUpdatePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ConfigurationForBatchUpdateProperties model =
            BinaryData
                .fromString("{\"value\":\"ftyxolniw\",\"source\":\"cukjf\"}")
                .toObject(ConfigurationForBatchUpdateProperties.class);
        Assertions.assertEquals("ftyxolniw", model.value());
        Assertions.assertEquals("cukjf", model.source());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ConfigurationForBatchUpdateProperties model =
            new ConfigurationForBatchUpdateProperties().withValue("ftyxolniw").withSource("cukjf");
        model = BinaryData.fromObject(model).toObject(ConfigurationForBatchUpdateProperties.class);
        Assertions.assertEquals("ftyxolniw", model.value());
        Assertions.assertEquals("cukjf", model.source());
    }
}
