Sentence d = new Sentence(this.jCas, 6, 7);
Sentence e = new Sentence(this.jCas, 8, 9);
for (Sentence sentence : Arrays.asList(a, b, c, d, e)) {
sentence.addToIndexes();
}
AnalyzedText text = new AnalyzedText(this.jCas, 2, 3);
text.addToIndexes();
List<Sentence> preceding = selectPreceding(this.jCas, Sentence.class, text, 1);
assertEquals(Arrays.asList("A"), JCasUtil.toText(preceding));
assertEquals(Arrays.asList(a), preceding);
preceding = selectPreceding(this.jCas, Sentence.class, text, 2);