AnalyzerUtils { public static Analyzer createAnalyzer(String analyzerClassName) throws ClassNotFoundException { return createAnalyzer(analyzerClassName, Version.LUCENE_5_5_2); } private  AnalyzerUtils(); static Analyzer createAnalyzer(String analyzerClassName); static Analyzer createAnalyzer(String analyzerClassName, Version version); static Analyzer createAnalyzer(Class<? extends Analyzer> analyzerClass); static Analyzer createAnalyzer(Class<? extends Analyzer> analyzerClass, Version version);  }
@Test public void createStandardAnalyzer() throws Exception { assertNotNull(AnalyzerUtils.createAnalyzer(StandardAnalyzer.class.getName())); }
@Test public void createCJKAnalyzer() throws Exception { assertNotNull(AnalyzerUtils.createAnalyzer(CJKAnalyzer.class.getName())); }