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

public final class DataDisksGroupsTests {
    @Test
    public void testDeserialize() {
        DataDisksGroups model =
            BinaryData
                .fromString(
                    "{\"disksPerNode\":913932124,\"storageAccountType\":\"dosvqwhbmdgbbjf\",\"diskSizeGB\":763703494}")
                .toObject(DataDisksGroups.class);
        Assertions.assertEquals(913932124, model.disksPerNode());
    }

    @Test
    public void testSerialize() {
        DataDisksGroups model = new DataDisksGroups().withDisksPerNode(913932124);
        model = BinaryData.fromObject(model).toObject(DataDisksGroups.class);
        Assertions.assertEquals(913932124, model.disksPerNode());
    }
}
