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

public final class ConnectToSourcePostgreSqlSyncTaskOutputTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ConnectToSourcePostgreSqlSyncTaskOutput model =
            BinaryData
                .fromString(
                    "{\"id\":\"tslhspkdeem\",\"sourceServerVersion\":\"fm\",\"databases\":[\"kv\",\"melmqkrha\",\"vljua\",\"aquhcdhm\"],\"sourceServerBrandVersion\":\"alaexqpvfadmwsrc\",\"validationErrors\":[{\"message\":\"pv\",\"actionableMessage\":\"mzlfmisgwb\",\"filePath\":\"beldawkzbaliourq\",\"lineNumber\":\"kauhashsfwxo\",\"hResult\":116380968,\"stackTrace\":\"xcug\"},{\"message\":\"jooxdjebw\",\"actionableMessage\":\"cwwfvovbvme\",\"filePath\":\"civyhzceuo\",\"lineNumber\":\"jrwjueiotwm\",\"hResult\":1848522994,\"stackTrace\":\"dxwitx\"}]}")
                .toObject(ConnectToSourcePostgreSqlSyncTaskOutput.class);
    }

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