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

public final class DatabaseSummaryResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DatabaseSummaryResult model =
            BinaryData
                .fromString(
                    "{\"sizeMB\":18.283288377861208,\"name\":\"duvwpklvxwmygd\",\"startedOn\":\"2021-04-18T03:22:57Z\",\"endedOn\":\"2021-01-04T00:18:57Z\",\"state\":\"Stopped\",\"statusMessage\":\"sze\",\"itemsCount\":2196732173372776914,\"itemsCompletedCount\":7411307117167855340,\"errorPrefix\":\"gibbdaxc\",\"resultPrefix\":\"fozauorsuk\"}")
                .toObject(DatabaseSummaryResult.class);
    }

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