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

package com.azure.resourcemanager.sqlvirtualmachine.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.sqlvirtualmachine.models.TroubleshootingStatus;

public final class TroubleshootingStatusTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        TroubleshootingStatus model =
            BinaryData
                .fromString(
                    "{\"rootCause\":\"iqzbq\",\"lastTriggerTimeUtc\":\"2021-04-12T04:02:19Z\",\"startTimeUtc\":\"2021-11-22T16:46:16Z\",\"endTimeUtc\":\"2021-03-01T06:44:22Z\",\"troubleshootingScenario\":\"UnhealthyReplica\",\"properties\":{\"unhealthyReplicaInfo\":{\"availabilityGroupName\":\"pkwlhz\"}}}")
                .toObject(TroubleshootingStatus.class);
    }

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