JFSIndexRepository jfsi = jcas.getJFSIndexRepository();
FSIndex fsi1 = jfsi.getIndex("all", Root.type);
FSIterator fsit1 = fsi1.iterator();
assertTrue(fsit1.isValid());
assertTrue(r2 == fsit1.get());
fsit1.moveToNext();
assertTrue(fsit1.isValid());
assertTrue(r1 == fsit1.get());
/*
* while (fsit1.isValid()) { System.out.println("Iterator getting: " +
* fsit1.get().toString()); fsit1.moveToNext(); }