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

public final class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"MigrationLevelOutput\",\"startedOn\":\"2021-08-16T09:13:32Z\",\"endedOn\":\"2021-04-06T04:39:54Z\",\"sourceServerVersion\":\"avvwxqi\",\"sourceServer\":\"qunyowxwlmdjr\",\"targetServerVersion\":\"fgbvfvpdbo\",\"targetServer\":\"cizsjqlhkrribdei\",\"id\":\"ipqkghvxndzwm\"}")
                .toObject(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel.class);
    }

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