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

public final class MigrateSqlServerSqlMITaskOutputLoginLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateSqlServerSqlMITaskOutputLoginLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"LoginLevelOutput\",\"loginName\":\"javftjuhdqa\",\"state\":\"Stopped\",\"stage\":\"Initialize\",\"startedOn\":\"2021-05-14T01:20Z\",\"endedOn\":\"2021-09-07T22:10:16Z\",\"message\":\"jrajcivm\",\"exceptionsAndWarnings\":[{\"message\":\"cf\",\"actionableMessage\":\"rxgkne\",\"filePath\":\"yinzqodfvpgs\",\"lineNumber\":\"xgsg\",\"hResult\":58598702,\"stackTrace\":\"zdjtxvzflbqv\"}],\"id\":\"qvlgafcqusrdvetn\"}")
                .toObject(MigrateSqlServerSqlMITaskOutputLoginLevel.class);
    }

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