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

package com.azure.resourcemanager.postgresqlflexibleserver.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.postgresqlflexibleserver.models.ServerSkuCapability;

public final class ServerSkuCapabilityTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ServerSkuCapability model =
            BinaryData
                .fromString(
                    "{\"name\":\"uhmuouqfprwzwbn\",\"vCores\":1555370196,\"supportedIops\":1015054859,\"supportedMemoryPerVcoreMb\":4695405863379842225,\"supportedZones\":[\"a\",\"x\"],\"supportedHaMode\":[\"SameZone\",\"SameZone\",\"SameZone\",\"SameZone\"],\"status\":\"Available\",\"reason\":\"hr\"}")
                .toObject(ServerSkuCapability.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ServerSkuCapability model = new ServerSkuCapability();
        model = BinaryData.fromObject(model).toObject(ServerSkuCapability.class);
    }
}
