final DocsAndPositionsEnum docsAndPositions = iterator.docsAndPositions( null, null );
docsAndPositions.advance( 0 );//move to Document id 0
docsAndPositions.nextPosition();
assertEquals( 0, docsAndPositions.startOffset() );//first term in sentence
assertEquals( 10, docsAndPositions.endOffset() );
docsAndPositions.nextPosition();
assertEquals( 29, docsAndPositions.startOffset() );//Term is mentioned again at character 29