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

public final class MigrateSqlServerSqlMITaskOutputMigrationLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateSqlServerSqlMITaskOutputMigrationLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"MigrationLevelOutput\",\"startedOn\":\"2021-08-07T03:00:22Z\",\"endedOn\":\"2021-06-28T19:52:41Z\",\"status\":\"Stopped\",\"state\":\"None\",\"agentJobs\":\"qhycavodggxdbees\",\"logins\":\"eknlra\",\"message\":\"aawiuagydwqfb\",\"serverRoleResults\":\"yr\",\"orphanedUsersInfo\":[{\"name\":\"gtcojocqwo\",\"databaseName\":\"nzjvusfzldm\"},{\"name\":\"uxylfsbtkadpy\",\"databaseName\":\"wn\"}],\"databases\":\"gkbugrjqct\",\"sourceServerVersion\":\"cmisofie\",\"sourceServerBrandVersion\":\"efojyqdhcupl\",\"targetServerVersion\":\"lcwkhihihlhz\",\"targetServerBrandVersion\":\"qtz\",\"exceptionsAndWarnings\":[{\"message\":\"nowc\",\"actionableMessage\":\"fgmvecactxmwo\",\"filePath\":\"yowc\",\"lineNumber\":\"qovekqvgqou\",\"hResult\":490492385,\"stackTrace\":\"mpjw\"},{\"message\":\"vqikfxcvhrfsphu\",\"actionableMessage\":\"rttikteusqc\",\"filePath\":\"vyklxuby\",\"lineNumber\":\"ff\",\"hResult\":1173878912,\"stackTrace\":\"lcqcuubgqibrt\"},{\"message\":\"metttwgd\",\"actionableMessage\":\"qxihhrmooi\",\"filePath\":\"seypxiutcxapz\",\"lineNumber\":\"rpetogebjoxsl\",\"hResult\":555122455,\"stackTrace\":\"labrqnkkzjcjbtr\"}],\"id\":\"ehvvib\"}")
                .toObject(MigrateSqlServerSqlMITaskOutputMigrationLevel.class);
    }

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