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

package com.azure.resourcemanager.hybridcontainerservice.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hybridcontainerservice.models.OrchestratorProfile;
import com.azure.resourcemanager.hybridcontainerservice.models.OrchestratorVersionProfile;
import java.util.Arrays;

public final class OrchestratorVersionProfileTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        OrchestratorVersionProfile model =
            BinaryData
                .fromString(
                    "{\"isPreview\":true,\"default\":false,\"orchestratorType\":\"um\",\"orchestratorVersion\":\"p\",\"upgrades\":[{\"isPreview\":false,\"orchestratorType\":\"zbtbhj\",\"orchestratorVersion\":\"lkfg\"},{\"isPreview\":false,\"orchestratorType\":\"euel\",\"orchestratorVersion\":\"hsd\"},{\"isPreview\":false,\"orchestratorType\":\"zfikd\",\"orchestratorVersion\":\"wq\"},{\"isPreview\":false,\"orchestratorType\":\"zx\",\"orchestratorVersion\":\"vithh\"}]}")
                .toObject(OrchestratorVersionProfile.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        OrchestratorVersionProfile model =
            new OrchestratorVersionProfile()
                .withUpgrades(
                    Arrays
                        .asList(
                            new OrchestratorProfile(),
                            new OrchestratorProfile(),
                            new OrchestratorProfile(),
                            new OrchestratorProfile()));
        model = BinaryData.fromObject(model).toObject(OrchestratorVersionProfile.class);
    }
}
