// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.postgresqlflexibleserver.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.postgresqlflexibleserver.models.MigrationResourceListResult;

public final class MigrationResourceListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrationResourceListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"migrationId\":\"lmuzy\",\"migrationMode\":\"Offline\",\"sourceDbServerResourceId\":\"zjancuxr\",\"sourceDbServerFullyQualifiedDomainName\":\"wbavxbniwdj\",\"targetDbServerResourceId\":\"zt\",\"targetDbServerFullyQualifiedDomainName\":\"bpg\",\"dbsToMigrate\":[],\"setupLogicalReplicationOnSourceDbIfNeeded\":\"True\",\"overwriteDbsInTarget\":\"True\",\"migrationWindowStartTimeInUtc\":\"2020-12-27T08:32:05Z\",\"migrationWindowEndTimeInUtc\":\"2021-01-28T23:20:59Z\",\"startDataMigration\":\"True\",\"triggerCutover\":\"True\",\"dbsToTriggerCutoverOn\":[],\"cancel\":\"False\",\"dbsToCancelMigrationOn\":[]},\"location\":\"hxw\",\"tags\":{\"vgyuguos\":\"yqiklbbovplwzb\"},\"id\":\"mkfssxqukkfplgm\",\"name\":\"sxnkjzkdeslpvlo\",\"type\":\"wiyighxpkdw\"},{\"properties\":{\"migrationId\":\"iuebbaumny\",\"migrationMode\":\"Online\",\"sourceDbServerResourceId\":\"jn\",\"sourceDbServerFullyQualifiedDomainName\":\"ckhsmtxpsieb\",\"targetDbServerResourceId\":\"hvpesapskrdqm\",\"targetDbServerFullyQualifiedDomainName\":\"jdhtldwkyzxu\",\"dbsToMigrate\":[],\"setupLogicalReplicationOnSourceDbIfNeeded\":\"False\",\"overwriteDbsInTarget\":\"True\",\"migrationWindowStartTimeInUtc\":\"2021-01-31T22:27:42Z\",\"migrationWindowEndTimeInUtc\":\"2021-08-14T16:13:22Z\",\"startDataMigration\":\"False\",\"triggerCutover\":\"True\",\"dbsToTriggerCutoverOn\":[],\"cancel\":\"False\",\"dbsToCancelMigrationOn\":[]},\"location\":\"upqsx\",\"tags\":{\"ykvceoveil\":\"i\",\"k\":\"vnotyfjfcnj\",\"kphywpnvjto\":\"nxdhbt\",\"plpho\":\"nermcl\"},\"id\":\"uscrpabgyepsb\",\"name\":\"tazqugxywpmueefj\",\"type\":\"wfqkquj\"},{\"properties\":{\"migrationId\":\"uyonobglaoc\",\"migrationMode\":\"Offline\",\"sourceDbServerResourceId\":\"yudxytlmoy\",\"sourceDbServerFullyQualifiedDomainName\":\"vwfudwpzntxhd\",\"targetDbServerResourceId\":\"lrqjbhckfr\",\"targetDbServerFullyQualifiedDomainName\":\"rxsbkyvp\",\"dbsToMigrate\":[],\"setupLogicalReplicationOnSourceDbIfNeeded\":\"False\",\"overwriteDbsInTarget\":\"False\",\"migrationWindowStartTimeInUtc\":\"2021-10-23T07:29:15Z\",\"migrationWindowEndTimeInUtc\":\"2021-12-09T18:21:24Z\",\"startDataMigration\":\"False\",\"triggerCutover\":\"False\",\"dbsToTriggerCutoverOn\":[],\"cancel\":\"True\",\"dbsToCancelMigrationOn\":[]},\"location\":\"bmehh\",\"tags\":{\"us\":\"v\",\"ofmxagkvtmelmqkr\":\"tslhspkdeem\",\"uhcdhm\":\"ahvljuaha\"},\"id\":\"ualaexqpvfadmw\",\"name\":\"rcrgvx\",\"type\":\"vgomz\"},{\"properties\":{\"migrationId\":\"isgwbnbbeldawkz\",\"migrationMode\":\"Offline\",\"sourceDbServerResourceId\":\"qhakauhashsf\",\"sourceDbServerFullyQualifiedDomainName\":\"osow\",\"targetDbServerResourceId\":\"cugicjoox\",\"targetDbServerFullyQualifiedDomainName\":\"ebwpucwwfvo\",\"dbsToMigrate\":[],\"setupLogicalReplicationOnSourceDbIfNeeded\":\"False\",\"overwriteDbsInTarget\":\"True\",\"migrationWindowStartTimeInUtc\":\"2021-12-02T03:16:54Z\",\"migrationWindowEndTimeInUtc\":\"2021-09-08T21:54:45Z\",\"startDataMigration\":\"False\",\"triggerCutover\":\"False\",\"dbsToTriggerCutoverOn\":[],\"cancel\":\"False\",\"dbsToCancelMigrationOn\":[]},\"location\":\"rw\",\"tags\":{\"nrjawgqwg\":\"iotwmcdytdxwit\",\"klwndnhjdauwhv\":\"hniskxfbkpyc\",\"zbtd\":\"l\"},\"id\":\"xujznbmpowu\",\"name\":\"przqlveu\",\"type\":\"lupj\"}],\"nextLink\":\"hfxobbcswsrtj\"}")
                .toObject(MigrationResourceListResult.class);
    }

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