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

public final class AutoScaleVCoreMutablePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AutoScaleVCoreMutableProperties model =
            BinaryData.fromString("{\"capacityLimit\":100068665}").toObject(AutoScaleVCoreMutableProperties.class);
        Assertions.assertEquals(100068665, model.capacityLimit());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AutoScaleVCoreMutableProperties model = new AutoScaleVCoreMutableProperties().withCapacityLimit(100068665);
        model = BinaryData.fromObject(model).toObject(AutoScaleVCoreMutableProperties.class);
        Assertions.assertEquals(100068665, model.capacityLimit());
    }
}
