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

public final class MigrateSqlServerSqlDbTaskOutputTableLevelTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MigrateSqlServerSqlDbTaskOutputTableLevel model =
            BinaryData
                .fromString(
                    "{\"resultType\":\"TableLevelOutput\",\"objectName\":\"gzslesjcbhernnti\",\"startedOn\":\"2021-09-10T03:49:52Z\",\"endedOn\":\"2021-08-27T00:56:15Z\",\"state\":\"Completed\",\"statusMessage\":\"uwrbehwagoh\",\"itemsCount\":248267720763277178,\"itemsCompletedCount\":2232582311474631364,\"errorPrefix\":\"emvvhm\",\"resultPrefix\":\"drjf\",\"id\":\"acoebj\"}")
                .toObject(MigrateSqlServerSqlDbTaskOutputTableLevel.class);
    }

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