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

package com.azure.resourcemanager.storagecache.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.storagecache.models.CacheUpgradeStatus;

public final class CacheUpgradeStatusTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        CacheUpgradeStatus model =
            BinaryData
                .fromString(
                    "{\"currentFirmwareVersion\":\"ulppggdtpnapnyir\",\"firmwareUpdateStatus\":\"available\",\"firmwareUpdateDeadline\":\"2021-02-20T09:26:33Z\",\"lastFirmwareUpdate\":\"2020-12-20T18:46:56Z\",\"pendingFirmwareVersion\":\"pgylg\"}")
                .toObject(CacheUpgradeStatus.class);
    }

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