public void testPm() throws Exception {
LuceneMorphology russianLuceneMorphology = new RussianLuceneMorphology();
LuceneMorphology englishLuceneMorphology = new EnglishLuceneMorphology();
MorphologyAnalyzer russianAnalyzer = new MorphologyAnalyzer(russianLuceneMorphology);
TokenStream stream = russianAnalyzer.tokenStream("name", new FastStringReader("тест пм тест"));
MorphologyFilter englishFilter = new MorphologyFilter(stream, englishLuceneMorphology);
assertSimpleTSOutput(englishFilter, new String[] {"тест", "тесто", "", "тест", "тесто"});
}
}