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

public final class MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"TableLevelOutput\",\"tableName\":\"fz\",\"databaseName\":\"hxx\",\"cdcInsertCounter\":\"yq\",\"cdcUpdateCounter\":\"zfeqztppri\",\"cdcDeleteCounter\":\"xorjaltolmncwsob\",\"fullLoadEstFinishTime\":\"2021-10-25T14:21:24Z\",\"fullLoadStartedOn\":\"2021-01-20T05:20:34Z\",\"fullLoadEndedOn\":\"2021-04-27T14:01:33Z\",\"fullLoadTotalRows\":1537965460429529227,\"state\":\"CANCELED\",\"totalChangesApplied\":7976075497308020496,\"dataErrorsCounter\":3846405596035643939,\"lastModifiedTime\":\"2021-10-01T17:33:32Z\",\"id\":\"lsbjjcanvxbv\"}")
                .toObject(MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel.class);
    }

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