cas2.setDocumentText("Line one\nLine two\nLine three");
CasIterator iter2 = ae2.processAndOutputNewCASes(cas2);
assertTrue(iter2.hasNext());
CAS outCas2 = iter2.next();
assertEquals("Line one", outCas2.getDocumentText());
outCas2.release();
assertTrue(iter2.hasNext());
outCas2 = iter2.next();
assertEquals("Line two", outCas2.getDocumentText());
outCas2.release();
assertTrue(iter2.hasNext());