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

public final class MigrateSqlServerSqlDbTaskOutputDatabaseLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateSqlServerSqlDbTaskOutputDatabaseLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"DatabaseLevelOutput\",\"databaseName\":\"wqiok\",\"startedOn\":\"2021-01-14T10:23:46Z\",\"endedOn\":\"2021-04-14T11:00:49Z\",\"state\":\"None\",\"stage\":\"Restore\",\"statusMessage\":\"p\",\"message\":\"prvkwcfzqljyxgtc\",\"numberOfObjects\":6617307512008189308,\"numberOfObjectsCompleted\":8137125616448530907,\"errorCount\":7885236864962595949,\"errorPrefix\":\"kx\",\"resultPrefix\":\"ehvbbxurip\",\"exceptionsAndWarnings\":[{\"message\":\"htba\",\"actionableMessage\":\"gx\",\"filePath\":\"rc\",\"lineNumber\":\"yklyhpluodpvruud\",\"hResult\":1016035136,\"stackTrace\":\"bth\"},{\"message\":\"tgk\",\"actionableMessage\":\"tvdxeclzedqb\",\"filePath\":\"hzlhplodqkdlww\",\"lineNumber\":\"bum\",\"hResult\":1849056321,\"stackTrace\":\"rqjfsmlm\"},{\"message\":\"xhwgfwsrtaw\",\"actionableMessage\":\"ezbrhubskh\",\"filePath\":\"ygo\",\"lineNumber\":\"kkqfqjbvle\",\"hResult\":1730138654,\"stackTrace\":\"luiqtqzfavyvnqq\"}],\"objectSummary\":\"aryeu\",\"id\":\"jkqa\"}")
                .toObject(MigrateSqlServerSqlDbTaskOutputDatabaseLevel.class);
    }

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