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

package com.azure.resourcemanager.timeseriesinsights.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.timeseriesinsights.models.WarmStorageEnvironmentStatus;

public final class WarmStorageEnvironmentStatusTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        WarmStorageEnvironmentStatus model =
            BinaryData
                .fromString(
                    "{\"propertiesUsage\":{\"state\":\"Error\",\"stateDetails\":{\"currentCount\":784923897,\"maxCount\":2136509867}}}")
                .toObject(WarmStorageEnvironmentStatus.class);
    }

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