// 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.ServerConfigurationInner;
import org.junit.jupiter.api.Assertions;

public final class ServerConfigurationInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ServerConfigurationInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"value\":\"umkdosvqwhbmd\",\"source\":\"bjf\",\"description\":\"gmbmbexppbh\",\"defaultValue\":\"qrolfpf\",\"dataType\":\"Enumeration\",\"allowedValues\":\"gbquxigj\",\"requiresRestart\":true,\"provisioningState\":\"InProgress\"},\"id\":\"o\",\"name\":\"fhrtxilnerkujysv\",\"type\":\"eju\"}")
                .toObject(ServerConfigurationInner.class);
        Assertions.assertEquals("umkdosvqwhbmd", model.value());
    }

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