}
}
public void testIteratorGetsJCasType() throws Exception {
try {
Token tok1 = new Token(jcas);
tok1.addToIndexes();
FSIterator it = jcas.getJFSIndexRepository().getIndex("all", Token.type).iterator();
while (it.hasNext()) {
Token token = (Token) it.next();
token.addToIndexes(); // something to do to keep Java from optimizing this away.
}
} catch (Exception e) {
JUnitExtension.handleException(e);
}
}