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

public final class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"TableLevelOutput\",\"tableName\":\"ncj\",\"databaseName\":\"udurgkakmokz\",\"cdcInsertCounter\":2248907093975297235,\"cdcUpdateCounter\":3751920609197992678,\"cdcDeleteCounter\":6890514693450435484,\"fullLoadEstFinishTime\":\"2021-06-25T06:45:10Z\",\"fullLoadStartedOn\":\"2021-09-10T08:27:42Z\",\"fullLoadEndedOn\":\"2021-01-26T12:14:58Z\",\"fullLoadTotalRows\":3452185252717027967,\"state\":\"COMPLETED\",\"totalChangesApplied\":2216106318758150745,\"dataErrorsCounter\":1842124516680921238,\"lastModifiedTime\":\"2021-08-01T17:17:52Z\",\"id\":\"uhqlbjbsybbqwrvt\"}")
                .toObject(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel.class);
    }

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