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

public final class MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"DatabaseLevelOutput\",\"databaseName\":\"dscwxqupevzhf\",\"startedOn\":\"2021-08-11T08:27:19Z\",\"endedOn\":\"2021-11-14T07:44:57Z\",\"migrationState\":\"UNDEFINED\",\"incomingChanges\":7195722350272905916,\"appliedChanges\":7090201070741462272,\"cdcInsertCounter\":686052529791158175,\"cdcDeleteCounter\":3920435085963862976,\"cdcUpdateCounter\":4971111949791382837,\"fullLoadCompletedTables\":8084058404803750830,\"fullLoadLoadingTables\":1158865571853625138,\"fullLoadQueuedTables\":2229563349522747265,\"fullLoadErroredTables\":6275857177727124744,\"initializationCompleted\":true,\"latency\":8274971032821131751,\"id\":\"kiwkkbnujr\"}")
                .toObject(MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel.class);
    }

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