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

package com.azure.resourcemanager.cosmosdbforpostgresql.generated;

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

public final class ServerConfigurationPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ServerConfigurationProperties model =
            BinaryData
                .fromString(
                    "{\"value\":\"fqawrlyxw\",\"source\":\"cpr\",\"description\":\"wbxgjvt\",\"defaultValue\":\"p\",\"dataType\":\"Numeric\",\"allowedValues\":\"dnrujqguhmuouqfp\",\"requiresRestart\":false,\"provisioningState\":\"Canceled\"}")
                .toObject(ServerConfigurationProperties.class);
        Assertions.assertEquals("fqawrlyxw", model.value());
    }

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