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

public final class MigrateSqlServerSqlMITaskOutputAgentJobLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateSqlServerSqlMITaskOutputAgentJobLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"AgentJobLevelOutput\",\"name\":\"cdmxzrpoaiml\",\"isEnabled\":true,\"state\":\"Skipped\",\"startedOn\":\"2021-12-05T18:05:26Z\",\"endedOn\":\"2021-10-04T07:14:54Z\",\"message\":\"eazulcs\",\"exceptionsAndWarnings\":[{\"message\":\"wnpjhlfzswpchwa\",\"actionableMessage\":\"bousn\",\"filePath\":\"pgfewetwlyx\",\"lineNumber\":\"cxy\",\"hResult\":705057675,\"stackTrace\":\"jhlimmbcxfhbcpo\"}],\"id\":\"vxcjzhqizxfpxtgq\"}")
                .toObject(MigrateSqlServerSqlMITaskOutputAgentJobLevel.class);
    }

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