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

public final class DataItemMigrationSummaryResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DataItemMigrationSummaryResult model =
            BinaryData
                .fromString(
                    "{\"name\":\"wbqpl\",\"startedOn\":\"2021-09-11T01:03:51Z\",\"endedOn\":\"2021-06-28T12:16:27Z\",\"state\":\"Stopped\",\"statusMessage\":\"zlrphwzs\",\"itemsCount\":1934599669073503654,\"itemsCompletedCount\":5542031390718229960,\"errorPrefix\":\"dunvmnnrwrbiorkt\",\"resultPrefix\":\"ywjhhgdnhx\"}")
                .toObject(DataItemMigrationSummaryResult.class);
    }

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