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

package com.azure.resourcemanager.powerbidedicated.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.powerbidedicated.fluent.models.AutoScaleVCoreProperties;
import org.junit.jupiter.api.Assertions;

public final class AutoScaleVCorePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AutoScaleVCoreProperties model =
            BinaryData
                .fromString(
                    "{\"capacityObjectId\":\"wiqzbqjvsovmyo\",\"provisioningState\":\"Succeeded\",\"capacityLimit\":1421441668}")
                .toObject(AutoScaleVCoreProperties.class);
        Assertions.assertEquals(1421441668, model.capacityLimit());
        Assertions.assertEquals("wiqzbqjvsovmyo", model.capacityObjectId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AutoScaleVCoreProperties model =
            new AutoScaleVCoreProperties().withCapacityLimit(1421441668).withCapacityObjectId("wiqzbqjvsovmyo");
        model = BinaryData.fromObject(model).toObject(AutoScaleVCoreProperties.class);
        Assertions.assertEquals(1421441668, model.capacityLimit());
        Assertions.assertEquals("wiqzbqjvsovmyo", model.capacityObjectId());
    }
}
