// 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.FlexibleServerEditionCapability;

public final class FlexibleServerEditionCapabilityTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        FlexibleServerEditionCapability model =
            BinaryData
                .fromString(
                    "{\"name\":\"czdzev\",\"defaultSkuName\":\"hkr\",\"supportedStorageEditions\":[{\"name\":\"ppdsbdkvwrwj\",\"defaultStorageSizeMb\":9199151377147978177,\"supportedStorageMb\":[],\"status\":\"Available\",\"reason\":\"eltmrldhugjzzdat\"}],\"supportedServerSkus\":[{\"name\":\"cdgea\",\"vCores\":885062254,\"supportedIops\":743985587,\"supportedMemoryPerVcoreMb\":1668711810431354243,\"supportedZones\":[\"dvkaozw\"],\"supportedHaMode\":[\"ZoneRedundant\",\"SameZone\",\"SameZone\"],\"status\":\"Default\",\"reason\":\"rokft\"},{\"name\":\"olniwpwcukjf\",\"vCores\":1945467900,\"supportedIops\":15479828,\"supportedMemoryPerVcoreMb\":831725990805220252,\"supportedZones\":[\"plwckbas\"],\"supportedHaMode\":[\"ZoneRedundant\",\"ZoneRedundant\",\"SameZone\",\"ZoneRedundant\"],\"status\":\"Default\",\"reason\":\"bacphejko\"}],\"status\":\"Default\",\"reason\":\"gou\"}")
                .toObject(FlexibleServerEditionCapability.class);
    }

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