### Question:
FeatureSettingAnalyzer extends Analyzer { public FeatureSettingAnalyzer(FeatureSetting featureSetting) { this(featureSetting, Version.LUCENE_47); } FeatureSettingAnalyzer(FeatureSetting featureSetting);  FeatureSettingAnalyzer(FeatureSetting featureSetting, Version luceneVersion); List<String> analyze(String string); @Override String toString(); static void main(String[] args);  }### Answer:
@SuppressWarnings("resource") @Test public void testFeatureSettingAnalyzer() { FeatureSetting featureSetting = FeatureSettingBuilder.chars(2, 5).create(); List<String> tokens = new FeatureSettingAnalyzer(featureSetting).analyze(text); assertCharLength(2, 5, tokens); assertAllLowercase(tokens); featureSetting = FeatureSettingBuilder.chars(1).create(); tokens = new FeatureSettingAnalyzer(featureSetting).analyze(text); assertCharLength(1, 1, tokens); assertAllLowercase(tokens); featureSetting = FeatureSettingBuilder.chars(1).maxTerms(10).create(); tokens = new FeatureSettingAnalyzer(featureSetting).analyze(text); assertCharLength(1, 1, tokens); assertAllLowercase(tokens); assertEquals(10, tokens.size()); featureSetting = FeatureSettingBuilder.words().create(); tokens = new FeatureSettingAnalyzer(featureSetting).analyze(text); assertTokenCount(1, 1, tokens); assertAllLowercase(tokens); assertEquals(9, tokens.size()); featureSetting = FeatureSettingBuilder.words(1, 5).create(); tokens = new FeatureSettingAnalyzer(featureSetting).analyze(text); assertTokenCount(1, 5, tokens); assertAllLowercase(tokens); assertEquals(35, tokens.size()); featureSetting = FeatureSettingBuilder.words().termLength(5, 20).create(); tokens = new FeatureSettingAnalyzer(featureSetting).analyze(text); assertTokenCount(1, 1, tokens); assertAllLowercase(tokens); assertEquals(3, tokens.size()); assertCharLength(5, 20, tokens); }