iter = ae.processAndOutputNewCASes(cas);
assertTrue(iter.hasNext());
outCas = iter.next();
assertEquals("Line one", outCas.getDocumentText());
assertEquals("Line one", TestAnnotator.lastDocument);
outCas.release();
assertTrue(iter.hasNext());
outCas = iter.next();
assertEquals("Line two", outCas.getDocumentText());
assertEquals("Line two", TestAnnotator.lastDocument);
outCas.release();