String text = "If you like line writer, then you should really check out line rider.";
tokenBuilder.buildTokens(jCas, text);
FSIndex<Annotation> tokenIndex = jCas.getAnnotationIndex(Token.type);
assertEquals(13, tokenIndex.size());
Token token = JCasUtil.selectByIndex(jCas, Token.class, 0);
testToken(token, "If", 0, 2, null, null);
token = JCasUtil.selectByIndex(jCas, Token.class, 12);
testToken(token, "rider.", 63, 69, null, null);
FSIndex<Annotation> sentenceIndex = jCas.getAnnotationIndex(Sentence.type);
assertEquals(1, sentenceIndex.size());