if (expectedNode != null) {
assertEquals(expectedNode[i], nodeAtt.node());
}
if (expectedPos != null) {
assertEquals(expectedPos[i], posAtt.position());
}
}
assertFalse("end of stream, received token " + termAtt.toString(), t.incrementToken());
t.end();