void assertNextTerms(String expectedUnfolded,String expectedFolded,ASCIIFoldingFilter filter,CharTermAttribute termAtt) throws Exception {
  assertTrue(filter.incrementToken());
  assertEquals(expectedFolded,termAtt.toString());
  if (filter.isPreserveOriginal() && !expectedUnfolded.equals(expectedFolded)) {
    assertTrue(filter.incrementToken());
    assertEquals(expectedUnfolded,termAtt.toString());
  }
}

void assertNextTerms ( String expectedUnfolded , String expectedFolded , ASCIIFoldingFilter filter , CharTermAttribute termAtt ) throws Exception { assertTrue ( filter . incrementToken ( ) ) ; assertEquals ( expectedFolded , termAtt . toString ( ) ) ; if ( filter . isPreserveOriginal ( ) && ! expectedUnfolded . equals ( expectedFolded ) ) { assertTrue ( filter . incrementToken ( ) ) ; assertEquals ( expectedUnfolded , termAtt . toString ( ) ) ; } }
pop one input token ' s worth of tokens off the filter and verify that they are as expected .
