@Test
    public void testSerializeDeserialize() {
        {
            Annotation annotation = new Annotation(dummy);
            serializeAndAssert(annotation);
        }
        {
            Annotation annotation = new Annotation(number, new IntegerFieldValue(56));
            serializeAndAssert(annotation);
        }
        {
            Struct value = new Struct(person);
            value.setFieldValue("firstname", "Barack");
            value.setFieldValue("lastname", "Obama");
            value.setFieldValue("birthyear", 1909);
            Annotation annotation = new Annotation(personA, value);
            serializeAndAssert(annotation);
        }
    }
@author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
document/src/test/java/com/yahoo/document/annotation/AnnotationTestCase.java