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

public final class HardwareProfileTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        HardwareProfile model = BinaryData.fromString("{\"vmSize\":\"trpmo\"}").toObject(HardwareProfile.class);
        Assertions.assertEquals("trpmo", model.vmSize());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        HardwareProfile model = new HardwareProfile().withVmSize("trpmo");
        model = BinaryData.fromObject(model).toObject(HardwareProfile.class);
        Assertions.assertEquals("trpmo", model.vmSize());
    }
}
