JCas jcas = JCasFactory.createJCasFromPath("src/main/resources/org/apache/ctakes/ytex/types/TypeSystem.xml");
while(colReader.hasNext()) {
count++;
colReader.getNext(jcas.getCas());
Assert.assertTrue("document should have a dockey", jcas.getAnnotationIndex(DocKey.type).iterator().hasNext());
jcas.reset();
}
Assert.assertTrue("should have read some documents", count > 0);
}