public void testLanguageSet() throws Exception {
Map<String,String> args = new HashMap<String,String>();
args.put("languageSet", "polish");
BeiderMorseFilterFactory factory = new BeiderMorseFilterFactory(args);
TokenStream ts = factory.create(new MockTokenizer(new StringReader("Weinberg"), MockTokenizer.WHITESPACE, false));
assertTokenStreamContents(ts,
new String[] { "vDmbYrk", "vDmbirk", "vambYrk", "vambirk", "vimbYrk", "vimbirk" },
new int[] { 0, 0, 0, 0, 0, 0 },
new int[] { 8, 8, 8, 8, 8, 8 },
new int[] { 1, 0, 0, 0, 0, 0 });