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

public final class MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"MigrationDatabaseLevelValidationOutput\",\"migrationId\":\"qolj\",\"sourceDatabaseName\":\"cgxxlxs\",\"targetDatabaseName\":\"gcvizqzdwlvwlyou\",\"startedOn\":\"2021-11-27T21:02:31Z\",\"endedOn\":\"2021-07-15T15:51:01Z\",\"dataIntegrityValidationResult\":{\"failedObjects\":{\"ttsttktlahbqact\":\"bdyhgkfminsgowz\",\"qqqxhrnxrx\":\"tgzukxitmmqt\"},\"validationErrors\":{\"text\":\"uisavokq\",\"severity\":\"Error\"}},\"schemaValidationResult\":{\"schemaDifferences\":{\"objectName\":\"ivjlfrqttbajlka\",\"objectType\":\"User\",\"updateAction\":\"DeletedOnTarget\"},\"validationErrors\":{\"text\":\"pidkqqfkuvscxkdm\",\"severity\":\"Error\"},\"sourceDatabaseObjectCount\":{\"rxkpmloazuruoc\":6134949836405409864,\"orbteoy\":8517542743150127284,\"jxakv\":2399230129113256962,\"slordilmyww\":5431753904297748094},\"targetDatabaseObjectCount\":{\"nye\":2397311129400397153,\"gyvudtjuewbc\":9040461916743042317,\"uuwhcjyxcc\":9033865557502512110}},\"queryAnalysisValidationResult\":{\"queryResults\":{\"queryText\":\"ayakkudzpx\",\"statementsInBatch\":1853682069039855587},\"validationErrors\":{\"text\":\"stcyohpfkyrkdbd\",\"severity\":\"Warning\"}},\"status\":\"InProgress\",\"id\":\"kmnwqjnobaiyhddv\"}")
                .toObject(MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult.class);
    }

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