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

public final class MigrateSqlServerSqlDbSyncTaskOutputMigrationLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"MigrationLevelOutput\",\"startedOn\":\"2021-06-30T11:22:33Z\",\"endedOn\":\"2021-05-14T16:05:17Z\",\"sourceServerVersion\":\"fffiak\",\"sourceServer\":\"pqqmted\",\"targetServerVersion\":\"mmji\",\"targetServer\":\"eozphv\",\"databaseCount\":1760801565,\"id\":\"qncygupkvi\"}")
                .toObject(MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel.class);
    }

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