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

package com.azure.resourcemanager.recoveryservices.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.recoveryservices.models.UpgradeDetails;

public final class UpgradeDetailsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        UpgradeDetails model =
            BinaryData
                .fromString(
                    "{\"operationId\":\"i\",\"startTimeUtc\":\"2021-12-07T02:37:39Z\",\"lastUpdatedTimeUtc\":\"2021-07-18T22:53:57Z\",\"endTimeUtc\":\"2021-10-23T16:11:35Z\",\"status\":\"Upgraded\",\"message\":\"abhjybi\",\"triggerType\":\"UserTriggered\",\"upgradedResourceId\":\"qfbow\",\"previousResourceId\":\"anyktzlcuiywg\"}")
                .toObject(UpgradeDetails.class);
    }

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