assertNotNull(cas.getIndexRepository().getIndex("TestIndex"));
assertNotNull(cas.getIndexRepository().getIndex("ReverseAnnotationIndex"));
assertNotNull(cas.getIndexRepository().getIndex("DocumentStructureIndex"));
// check of type priority
AnnotationFS fs1 = cas.createAnnotation(cas.getTypeSystem().getType("Paragraph"), 0, 1);
AnnotationFS fs2 = cas.createAnnotation(cas.getTypeSystem().getType("Sentence"), 0, 1);
assertTrue(cas.getAnnotationIndex().compare(fs1, fs2) < 0);
} catch (Exception e) {
JUnitExtension.handleException(e);
}