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

public final class GetUserTablesSqlTaskOutputTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        GetUserTablesSqlTaskOutput model =
            BinaryData
                .fromString(
                    "{\"id\":\"szkkfoqre\",\"databasesToTables\":\"kzikfjawneaivxwc\",\"validationErrors\":[{\"message\":\"c\",\"actionableMessage\":\"elsfeaen\",\"filePath\":\"bfatklddxbjhwu\",\"lineNumber\":\"nozj\",\"hResult\":443965325,\"stackTrace\":\"youlp\"},{\"message\":\"v\",\"actionableMessage\":\"glrvimjwosytxi\",\"filePath\":\"skfc\",\"lineNumber\":\"qumiek\",\"hResult\":1035067368,\"stackTrace\":\"ikh\"},{\"message\":\"fjhdg\",\"actionableMessage\":\"gebdunygaeq\",\"filePath\":\"bqfatpxllrxcyjmo\",\"lineNumber\":\"su\",\"hResult\":239264688,\"stackTrace\":\"ywdmjsjqbjh\"}]}")
                .toObject(GetUserTablesSqlTaskOutput.class);
    }

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