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

public final class MigrateSqlServerSqlMITaskOutputErrorTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateSqlServerSqlMITaskOutputError model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"ErrorOutput\",\"error\":{\"message\":\"tutnwlduycvuzhyr\",\"actionableMessage\":\"wipmvekdxuk\",\"filePath\":\"gsjj\",\"lineNumber\":\"n\",\"hResult\":892169795,\"stackTrace\":\"etw\"},\"id\":\"hzjhf\"}")
                .toObject(MigrateSqlServerSqlMITaskOutputError.class);
    }

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