/** shingles, keep those matching whitelist */
@Test
public void testShingleFilteredAnalyzer() throws IOException {
Reader reader = new StringReader(input);
Analyzer analyzer = new WhitespaceAnalyzer(Version.LUCENE_43);
TokenStream ts = analyzer.tokenStream(null, reader);
ts.reset();
ShingleFilter sf = new ShingleFilter(ts, 3);
TokenStream f = new BloomTokenFilter(getFilter(shingleKeepTokens), true, sf);
validateTokens(expectedShingleTokens, f);
ts.end();