// 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.fluent.models.OrchestratorVersionProfileListResultInner;
import com.azure.resourcemanager.hybridcontainerservice.models.OrchestratorVersionProfile;
import java.util.Arrays;

public final class OrchestratorVersionProfileListResultInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        OrchestratorVersionProfileListResultInner model =
            BinaryData
                .fromString(
                    "{\"orchestrators\":[{\"isPreview\":true,\"default\":false,\"orchestratorType\":\"agxti\",\"orchestratorVersion\":\"dxbx\",\"upgrades\":[]},{\"isPreview\":true,\"default\":false,\"orchestratorType\":\"ndlkzgxhurip\",\"orchestratorVersion\":\"podxunkb\",\"upgrades\":[]},{\"isPreview\":false,\"default\":false,\"orchestratorType\":\"ntwlrbqtkoie\",\"orchestratorVersion\":\"eotg\",\"upgrades\":[]}],\"id\":\"tmuwlauwzi\",\"name\":\"bm\",\"type\":\"cjefuzmu\"}")
                .toObject(OrchestratorVersionProfileListResultInner.class);
    }

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