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

public final class MigrateSqlServerSqlMITaskOutputDatabaseLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateSqlServerSqlMITaskOutputDatabaseLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"DatabaseLevelOutput\",\"databaseName\":\"jj\",\"sizeMB\":63.13862474716693,\"state\":\"None\",\"stage\":\"Backup\",\"startedOn\":\"2021-02-26T04:41:23Z\",\"endedOn\":\"2021-05-28T10:13:33Z\",\"message\":\"moob\",\"exceptionsAndWarnings\":[{\"message\":\"idgfc\",\"actionableMessage\":\"mpimaqxzhemjyh\",\"filePath\":\"uj\",\"lineNumber\":\"t\",\"hResult\":509926505,\"stackTrace\":\"zwculkbawpfajnj\"}],\"id\":\"tlwtjjguktalhsn\"}")
                .toObject(MigrateSqlServerSqlMITaskOutputDatabaseLevel.class);
    }

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