// 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.ArcAgentProfile;
import com.azure.resourcemanager.hybridcontainerservice.models.AutoUpgradeOptions;
import org.junit.jupiter.api.Assertions;

public final class ArcAgentProfileTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ArcAgentProfile model =
            BinaryData
                .fromString("{\"agentVersion\":\"hsgcbacphejkot\",\"agentAutoUpgrade\":\"Enabled\"}")
                .toObject(ArcAgentProfile.class);
        Assertions.assertEquals("hsgcbacphejkot", model.agentVersion());
        Assertions.assertEquals(AutoUpgradeOptions.ENABLED, model.agentAutoUpgrade());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ArcAgentProfile model =
            new ArcAgentProfile().withAgentVersion("hsgcbacphejkot").withAgentAutoUpgrade(AutoUpgradeOptions.ENABLED);
        model = BinaryData.fromObject(model).toObject(ArcAgentProfile.class);
        Assertions.assertEquals("hsgcbacphejkot", model.agentVersion());
        Assertions.assertEquals(AutoUpgradeOptions.ENABLED, model.agentAutoUpgrade());
    }
}
