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

package com.azure.resourcemanager.appcontainers.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.appcontainers.models.WorkloadProfileStatesProperties;
import org.junit.jupiter.api.Assertions;

public final class WorkloadProfileStatesPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        WorkloadProfileStatesProperties model =
            BinaryData
                .fromString("{\"minimumCount\":740306752,\"maximumCount\":1798680046,\"currentCount\":1231214883}")
                .toObject(WorkloadProfileStatesProperties.class);
        Assertions.assertEquals(740306752, model.minimumCount());
        Assertions.assertEquals(1798680046, model.maximumCount());
        Assertions.assertEquals(1231214883, model.currentCount());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        WorkloadProfileStatesProperties model =
            new WorkloadProfileStatesProperties()
                .withMinimumCount(740306752)
                .withMaximumCount(1798680046)
                .withCurrentCount(1231214883);
        model = BinaryData.fromObject(model).toObject(WorkloadProfileStatesProperties.class);
        Assertions.assertEquals(740306752, model.minimumCount());
        Assertions.assertEquals(1798680046, model.maximumCount());
        Assertions.assertEquals(1231214883, model.currentCount());
    }
}
