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

package com.azure.resourcemanager.mariadb.generated;

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

public final class ConfigurationInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ConfigurationInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"value\":\"efgugnxk\",\"description\":\"dqmidtt\",\"defaultValue\":\"rvqdra\",\"dataType\":\"jybige\",\"allowedValues\":\"qfbow\",\"source\":\"anyktzlcuiywg\"},\"id\":\"ywgndrv\",\"name\":\"nhzgpphrcgyn\",\"type\":\"ocpecfvmmco\"}")
                .toObject(ConfigurationInner.class);
        Assertions.assertEquals("efgugnxk", model.value());
        Assertions.assertEquals("anyktzlcuiywg", model.source());
    }

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