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

public final class WarmStoragePropertiesUsageStateDetailsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        WarmStoragePropertiesUsageStateDetails model =
            BinaryData
                .fromString("{\"currentCount\":127337486,\"maxCount\":2024670267}")
                .toObject(WarmStoragePropertiesUsageStateDetails.class);
        Assertions.assertEquals(127337486, model.currentCount());
        Assertions.assertEquals(2024670267, model.maxCount());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        WarmStoragePropertiesUsageStateDetails model =
            new WarmStoragePropertiesUsageStateDetails().withCurrentCount(127337486).withMaxCount(2024670267);
        model = BinaryData.fromObject(model).toObject(WarmStoragePropertiesUsageStateDetails.class);
        Assertions.assertEquals(127337486, model.currentCount());
        Assertions.assertEquals(2024670267, model.maxCount());
    }
}
