@Test
    public void testAnnotationBasic() {
        Accesses accesses = MyDocProc.class.getAnnotation(Accesses.class);
        After after = MyDocProc.class.getAnnotation(After.class);
        assertNotNull(accesses);
        assertNotNull(after);
        assertEquals(after.value()[0], "MyOtherDocProc");
        assertEquals(after.value()[1], "AnotherDocProc");
        assertEquals(accesses.value()[0].name(), "myField1");
        assertEquals(accesses.value()[1].annotations()[0].consumes()[0], "word");
        assertEquals(accesses.value()[1].annotations()[0].consumes()[1], "phrase");
    }
Tests chaining of some processors, and execution of the processors
on some documents
docproc/src/test/java/com/yahoo/docproc/SimpleDocumentProcessingTestCase.java