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

package com.azure.resourcemanager.datamigration.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.datamigration.models.ConnectToTargetAzureDbForMySqlTaskOutput;

public final class ConnectToTargetAzureDbForMySqlTaskOutputTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ConnectToTargetAzureDbForMySqlTaskOutput model =
            BinaryData
                .fromString(
                    "{\"id\":\"hsqfsubcgjbirxbp\",\"serverVersion\":\"srfbjfdtwss\",\"databases\":[\"tpvjzbexilzznfqq\",\"vwpm\",\"taruoujmkcj\"],\"targetServerBrandVersion\":\"qytjrybnwjewgd\",\"validationErrors\":[{\"message\":\"vnaenqpehindoyg\",\"actionableMessage\":\"fthnzdn\",\"filePath\":\"l\",\"lineNumber\":\"ayqigynduhav\",\"hResult\":1238517729,\"stackTrace\":\"thuma\"},{\"message\":\"lbg\",\"actionableMessage\":\"duiertgcc\",\"filePath\":\"vaolpsslqlf\",\"lineNumber\":\"dnbbglzps\",\"hResult\":1295617641,\"stackTrace\":\"mcwyhzdxssadb\"},{\"message\":\"nvdfznuda\",\"actionableMessage\":\"vxzbncb\",\"filePath\":\"lpstdbhhxsrzdz\",\"lineNumber\":\"erscdntne\",\"hResult\":1072156994,\"stackTrace\":\"jmygtdsslswtmwer\"}]}")
                .toObject(ConnectToTargetAzureDbForMySqlTaskOutput.class);
    }

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