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

package com.azure.resourcemanager.hdinsight.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hdinsight.models.ClusterResizeParameters;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class ClusterResizeParametersTests {
    @Test
    public void testDeserialize() {
        ClusterResizeParameters model =
            BinaryData.fromString("{\"targetInstanceCount\":2008133985}").toObject(ClusterResizeParameters.class);
        Assertions.assertEquals(2008133985, model.targetInstanceCount());
    }

    @Test
    public void testSerialize() {
        ClusterResizeParameters model = new ClusterResizeParameters().withTargetInstanceCount(2008133985);
        model = BinaryData.fromObject(model).toObject(ClusterResizeParameters.class);
        Assertions.assertEquals(2008133985, model.targetInstanceCount());
    }
}
