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

public final class MigrationValidationDatabaseSummaryResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrationValidationDatabaseSummaryResult model =
            BinaryData
                .fromString(
                    "{\"id\":\"cwrwfs\",\"migrationId\":\"fnynszqujizdvoqy\",\"sourceDatabaseName\":\"byowbblgyavutp\",\"targetDatabaseName\":\"joxoism\",\"startedOn\":\"2021-09-03T17:34:04Z\",\"endedOn\":\"2021-08-10T19:53:45Z\",\"status\":\"InProgress\"}")
                .toObject(MigrationValidationDatabaseSummaryResult.class);
    }

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