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

package com.azure.resourcemanager.managednetworkfabric.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.managednetworkfabric.models.AnnotationResource;
import org.junit.jupiter.api.Assertions;

public final class AnnotationResourceTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        AnnotationResource model =
            BinaryData.fromString("{\"annotation\":\"heyd\"}").toObject(AnnotationResource.class);
        Assertions.assertEquals("heyd", model.annotation());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        AnnotationResource model = new AnnotationResource().withAnnotation("heyd");
        model = BinaryData.fromObject(model).toObject(AnnotationResource.class);
        Assertions.assertEquals("heyd", model.annotation());
    }
}
