// Create a bunch of FSs.
AnnotationFS[] fsArray = new AnnotationFS[100];
FSIndexRepository ir = this.cas.getIndexRepository();
for (int i = 0; i < fsArray.length; i++) {
fsArray[i] = this.cas.createAnnotation(this.tokenType, i * 5, (i * 5) + 4);
ir.addFS(fsArray[i]);
}
FSIndex<FeatureStructure> setIndex = this.cas.getIndexRepository().getIndex(CASTestSetup.ANNOT_SET_INDEX,
this.tokenType);
FSIterator<FeatureStructure> setIt = setIndex.iterator();
FSIndex<AnnotationFS> sortedIndex = this.cas.getAnnotationIndex(this.tokenType);