static void verifyCarAnnotations(Message car, Message part, Message tire,
            EnumGroup localGender, EnumGroup importedGender, EnumGroup condition,
            Message person, Message listRequest)
    {
        Annotation name = car.getAnnotation("Name");
        assertNotNull(name);
        assertEquals(name.getValue("value"), "Car");

        Annotation local = car.getAnnotation("Local");
        assertNotNull(local);
        assertTrue(local.getValue("self") == car);
        assertTrue(local.getValue("local_enum") == localGender);
        assertTrue(local.getValue("nested") == part);
        assertTrue(local.getValue("nested_enum") == condition);
        assertTrue(local.getValue("deeper") == tire);

        Annotation imported = car.getAnnotation("Imported");
        assertNotNull(imported);
        assertTrue(imported.getValue("imported_message") == person);
        assertTrue(imported.getValue("imported_enum") == importedGender);

        Annotation fqcn = car.getAnnotation("FQCN");
        assertNotNull(fqcn);
        assertTrue(fqcn.getValue("fqcn_message") == listRequest);
        assertTrue(fqcn.getValue("fqcn_enum") == importedGender);

        if (ConfiguredReference.RESOLVE_ENUM_VALUE_REF)
        {
            assertTrue(local.getValue("gender") == localGender.getValue("MALE"));
            assertTrue(imported.getValue("gender") == importedGender.getValue("FEMALE"));
        }
    }
Test for references configured via options and annotations.

@author David Yu
@created Dec 22, 2011
protostuff-parser/src/test/java/io/protostuff/parser/ConfiguredReferenceTest.java