public void testFilter() throws Exception {
final String input = "How to?";
final TokenStream stream = new AnyCharTokenizer(TEST_VERSION_CURRENT, new StringReader(input));
final LanguageToolFilter filter = new LanguageToolFilter(stream, new JLanguageTool(new English()), false);
//displayTokensWithFullDetails(filter);
String start = "_POS_SENT_START";
assertTokenStreamContents(filter,
new String[] { start, "How", "_LEMMA_how", "_POS_WRB", "to", "_LEMMA_to", "_POS_TO", "_LEMMA_to", "_POS_IN", "?", "_POS_SENT_END" },