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

public final class StorageMbCapabilityTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        StorageMbCapability model =
            BinaryData
                .fromString(
                    "{\"supportedIops\":298107669,\"storageSizeMb\":2815796580995720417,\"defaultIopsTier\":\"xppbhtqqro\",\"supportedIopsTiers\":[{\"name\":\"psalgbqux\",\"iops\":596871405,\"status\":\"Default\",\"reason\":\"zjaoyfhrtxil\"}],\"status\":\"Available\",\"reason\":\"ujysvle\"}")
                .toObject(StorageMbCapability.class);
    }

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