FSIndex anIndex = englishView.getAnnotationIndex();
FSIterator anIter = anIndex.iterator();
Assert.assertEquals("this beer is good", ((AnnotationFS) anIter.next()).getCoveredText());
Assert.assertEquals("this", ((AnnotationFS) anIter.next()).getCoveredText());
if ("this".equals(((AnnotationFS) anIter.get()).getCoveredText()))
anIter.moveToNext(); // because sometimes the test case runs 2 copies of the TransAnnotator
Assert.assertEquals("beer", ((AnnotationFS) anIter.next()).getCoveredText());
if ("beer".equals(((AnnotationFS) anIter.get()).getCoveredText()))
anIter.moveToNext();
Assert.assertEquals("is", ((AnnotationFS) anIter.next()).getCoveredText());
if ("is".equals(((AnnotationFS) anIter.get()).getCoveredText()))