// 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.fluent.models.AddonInner;
import com.azure.resourcemanager.avs.models.AddonProperties;

public final class AddonInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AddonInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"addonType\":\"AddonProperties\",\"provisioningState\":\"Canceled\"},\"id\":\"imrzrtuzqog\",\"name\":\"exn\",\"type\":\"vfdnwnwmewzsyyce\"}")
                .toObject(AddonInner.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AddonInner model = new AddonInner().withProperties(new AddonProperties());
        model = BinaryData.fromObject(model).toObject(AddonInner.class);
    }
}
