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

public final class ProvisionedClusterPoolUpgradeProfileTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ProvisionedClusterPoolUpgradeProfile model =
            BinaryData
                .fromString(
                    "{\"kubernetesVersion\":\"glaocq\",\"name\":\"ccm\",\"osType\":\"Windows\",\"upgrades\":[{\"kubernetesVersion\":\"tlmoyrx\",\"isPreview\":false}]}")
                .toObject(ProvisionedClusterPoolUpgradeProfile.class);
    }

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