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

public final class ConnectToSourceSqlServerTaskOutputTaskLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ConnectToSourceSqlServerTaskOutputTaskLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"TaskLevelOutput\",\"databases\":\"nbmpowuwprzq\",\"logins\":\"eualupjmkhf\",\"agentJobs\":\"bbcswsrtjri\",\"sourceServerVersion\":\"rbpbewtghfgblcg\",\"sourceServerBrandVersion\":\"zvlvqhjkbegib\",\"validationErrors\":[{\"message\":\"iebwwaloayqcgwrt\",\"actionableMessage\":\"uzgwyzmhtx\",\"filePath\":\"gmtsavjcbpwxqpsr\",\"lineNumber\":\"ftguv\",\"hResult\":987025721,\"stackTrace\":\"prwmdyvxqt\"},{\"message\":\"riwwroy\",\"actionableMessage\":\"exrmcqibycnojvk\",\"filePath\":\"e\",\"lineNumber\":\"sgzvahapjyzhpv\",\"hResult\":1600165537,\"stackTrace\":\"j\"}],\"id\":\"xdjzlmwlxk\"}")
                .toObject(ConnectToSourceSqlServerTaskOutputTaskLevel.class);
    }

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