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

public final class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"DatabaseLevelOutput\",\"databaseName\":\"zuempsbzkf\",\"startedOn\":\"2021-06-16T01:14:17Z\",\"endedOn\":\"2021-07-26T11:46:04Z\",\"migrationState\":\"CANCELLING\",\"incomingChanges\":3787214015941911197,\"appliedChanges\":4768214701197108513,\"cdcInsertCounter\":3247723866325390460,\"cdcDeleteCounter\":4259758037334187263,\"cdcUpdateCounter\":8464524771517647975,\"fullLoadCompletedTables\":7028872436182293033,\"fullLoadLoadingTables\":8022834096733888340,\"fullLoadQueuedTables\":6004477905868405720,\"fullLoadErroredTables\":7848587408426181580,\"initializationCompleted\":true,\"latency\":4550643593085904235,\"id\":\"pofncck\"}")
                .toObject(MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel.class);
    }

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