// 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.ConnectToSourceNonSqlTaskOutput;

public final class ConnectToSourceNonSqlTaskOutputTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ConnectToSourceNonSqlTaskOutput model =
            BinaryData
                .fromString(
                    "{\"id\":\"vmkfssxqu\",\"sourceServerBrandVersion\":\"fpl\",\"serverProperties\":{\"serverPlatform\":\"sxnkjzkdeslpvlo\",\"serverName\":\"i\",\"serverVersion\":\"ghxpkdw\",\"serverEdition\":\"aiuebbaumnyqu\",\"serverOperatingSystemVersion\":\"deoj\",\"serverDatabaseCount\":746279797},\"databases\":[\"hsmtxpsiebtfhvp\",\"sapskr\",\"qmhjjdhtld\"],\"validationErrors\":[{\"message\":\"xuutkncwscwsv\",\"actionableMessage\":\"otogtwrupqs\",\"filePath\":\"nmic\",\"lineNumber\":\"vce\",\"hResult\":579723655,\"stackTrace\":\"lo\"},{\"message\":\"oty\",\"actionableMessage\":\"fcnj\",\"filePath\":\"cn\",\"lineNumber\":\"hbttkphyw\",\"hResult\":1284749235,\"stackTrace\":\"t\"},{\"message\":\"nermcl\",\"actionableMessage\":\"lphox\",\"filePath\":\"crpab\",\"lineNumber\":\"epsbjtazqu\",\"hResult\":1647814243,\"stackTrace\":\"pmueefjzwfqk\"}]}")
                .toObject(ConnectToSourceNonSqlTaskOutput.class);
    }

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