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

package com.azure.resourcemanager.resourceconnector.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.resourceconnector.fluent.models.UpgradeGraphInner;
import com.azure.resourcemanager.resourceconnector.models.UpgradeGraphProperties;

public final class UpgradeGraphInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        UpgradeGraphInner model =
            BinaryData
                .fromString(
                    "{\"id\":\"si\",\"name\":\"evcciqihnhun\",\"properties\":{\"applianceVersion\":\"jzrnf\",\"supportedVersions\":[{\"version\":\"spemvtzfk\"},{\"version\":\"bljofxqeof\"},{\"version\":\"qjhqjbas\"},{\"version\":\"mjqulngsn\"}]}}")
                .toObject(UpgradeGraphInner.class);
    }

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