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

package com.azure.resourcemanager.avs.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.avs.models.AddonArcProperties;
import org.junit.jupiter.api.Assertions;

public final class AddonArcPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AddonArcProperties model =
            BinaryData
                .fromString(
                    "{\"addonType\":\"Arc\",\"vCenter\":\"ozphvwauyqncygu\",\"provisioningState\":\"Succeeded\"}")
                .toObject(AddonArcProperties.class);
        Assertions.assertEquals("ozphvwauyqncygu", model.vCenter());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AddonArcProperties model = new AddonArcProperties().withVCenter("ozphvwauyqncygu");
        model = BinaryData.fromObject(model).toObject(AddonArcProperties.class);
        Assertions.assertEquals("ozphvwauyqncygu", model.vCenter());
    }
}
