// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.databoxedge.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.databoxedge.models.UpdateDownloadProgress;

public final class UpdateDownloadProgressTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        UpdateDownloadProgress model =
            BinaryData
                .fromString(
                    "{\"downloadPhase\":\"Unknown\",\"percentComplete\":511745945,\"totalBytesToDownload\":1.6931489022846913,\"totalBytesDownloaded\":62.02590646369739,\"numberOfUpdatesToDownload\":1190455395,\"numberOfUpdatesDownloaded\":63743502}")
                .toObject(UpdateDownloadProgress.class);
    }

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