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

public final class MigrateSqlServerSqlDbTaskOutputMigrationLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateSqlServerSqlDbTaskOutputMigrationLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"MigrationLevelOutput\",\"startedOn\":\"2021-03-19T01:58:37Z\",\"endedOn\":\"2021-06-06T00:52:09Z\",\"durationInSeconds\":1067428032118416748,\"status\":\"SelectLogins\",\"statusMessage\":\"qntcypsxjvfoimwk\",\"message\":\"ircizjxvy\",\"databases\":\"ceacvlhvygdy\",\"databaseSummary\":\"umrtwnawjsl\",\"migrationReport\":{\"id\":\"kojgcyzts\",\"reportUrl\":\"z\"},\"sourceServerVersion\":\"aeqphchqnr\",\"sourceServerBrandVersion\":\"pxehuwrykqga\",\"targetServerVersion\":\"mvikl\",\"targetServerBrandVersion\":\"dvk\",\"exceptionsAndWarnings\":[{\"message\":\"dznx\",\"actionableMessage\":\"dsrhnjiv\",\"filePath\":\"v\",\"lineNumber\":\"ovqfzge\",\"hResult\":1068336147,\"stackTrace\":\"tul\"}],\"id\":\"tduceamt\"}")
                .toObject(MigrateSqlServerSqlDbTaskOutputMigrationLevel.class);
    }

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