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

package azure.resourcemanager.multiserviceolderversions.combined.generated;

import azure.resourcemanager.multiserviceolderversions.combined.models.VirtualMachineProperties;
import com.azure.core.util.BinaryData;
import org.junit.jupiter.api.Assertions;

public final class VirtualMachinePropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        VirtualMachineProperties model
            = BinaryData.fromString("{\"provisioningState\":\"Canceled\",\"size\":\"dxbmtqioq\"}")
                .toObject(VirtualMachineProperties.class);
        Assertions.assertEquals("dxbmtqioq", model.size());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        VirtualMachineProperties model = new VirtualMachineProperties().withSize("dxbmtqioq");
        model = BinaryData.fromObject(model).toObject(VirtualMachineProperties.class);
        Assertions.assertEquals("dxbmtqioq", model.size());
    }
}
