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

public final class MigrateSqlServerSqlDbSyncTaskOutputTableLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateSqlServerSqlDbSyncTaskOutputTableLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"TableLevelOutput\",\"tableName\":\"vtylbfpncu\",\"databaseName\":\"oiwiithtywub\",\"cdcInsertCounter\":3048231352847216987,\"cdcUpdateCounter\":7098733089051666960,\"cdcDeleteCounter\":3527058341546339239,\"fullLoadEstFinishTime\":\"2021-09-05T23:19:39Z\",\"fullLoadStartedOn\":\"2021-08-12T13:32:47Z\",\"fullLoadEndedOn\":\"2021-02-09T05:21:53Z\",\"fullLoadTotalRows\":1273804368203867263,\"state\":\"ERROR\",\"totalChangesApplied\":3937799018867892667,\"dataErrorsCounter\":7107037042754238104,\"lastModifiedTime\":\"2021-06-04T13:45:26Z\",\"id\":\"ndz\"}")
                .toObject(MigrateSqlServerSqlDbSyncTaskOutputTableLevel.class);
    }

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