assertTokenStreamContents(ts, new String[] { "a", "e" });
}
public void testMultiWordSynonyms() throws Exception {
Reader reader = new StringReader("a e");
TokenStream stream = new MockTokenizer(reader, MockTokenizer.WHITESPACE, false);
stream = tokenFilterFactory("Synonym", TEST_VERSION_CURRENT,
new StringMockResourceLoader("a b c,d"),
"synonyms", "synonyms.txt").create(stream);
// This fails because ["e","e"] is the value of the token stream
assertTokenStreamContents(stream, new String[] { "a", "e" });