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

package com.azure.resourcemanager.workloads.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.workloads.models.DatabaseVmDetails;

public final class DatabaseVmDetailsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DatabaseVmDetails model =
            BinaryData
                .fromString(
                    "{\"virtualMachineId\":\"yxzk\",\"status\":\"SoftShutdown\",\"storageDetails\":[{\"id\":\"oklyaxuconuq\"}]}")
                .toObject(DatabaseVmDetails.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DatabaseVmDetails model = new DatabaseVmDetails();
        model = BinaryData.fromObject(model).toObject(DatabaseVmDetails.class);
    }
}
