* @see TokenAlignerTest#testInsertTrivial()
*/
public void testChainOriginAddTrivial() throws Exception {
List<MarkupElement> expected = new ArrayList<MarkupElement>(Arrays.asList(
new OriginMarkup(0, 4, ai[7], 0, 4, 1), // free
new TrivialLineMarkup(4, 5),
new OriginMarkup(5, 10, ai[6], 11, 16, 1), // world
new TrivialLineMarkup(10, 11),
new OriginMarkup(11, 15, ai[6], 17, 21, 1), // this
new TrivialLineMarkup(15, 16),
new OriginMarkup(16, 18, ai[6], 23, 25, 1), // is
new TrivialLineMarkup(18, 19),
new TrivialLineMarkup(19, 22), // _2
new TrivialLineMarkup(22, 25), // _1
new OriginMarkup(25, 26, ai[6], 27, 28, 1), // a
new TrivialLineMarkup(26, 27),
new OriginMarkup(27, 31, ai[6], 29, 33, 1) // test
));
repository.setTrivialTokenFilter(new TrivialTokenFilter() {
public boolean isTrivialToken(Token token) {
return token.getCore().length() == 0 || token.getCore().charAt(0) == '_';