Analyzer analyzer = new KeywordAnalyzer();
analyzerAttr.setAnalyzer(analyzer);
Assert.assertTrue(analyzer == analyzerAttr.getAnalyzer());
Assert.assertTrue(analyzer == config.get(ConfigurationKeys.ANALYZER));
DateResolutionAttribute dateResAttr = config
.addAttribute(DateResolutionAttribute.class);
Assert.assertTrue(null == dateResAttr.getDateResolution());
Assert.assertTrue(null == config.get(ConfigurationKeys.DATE_RESOLUTION));
DateTools.Resolution dateRes = DateTools.Resolution.HOUR;
dateResAttr.setDateResolution(dateRes);
Assert.assertTrue(dateRes == dateResAttr.getDateResolution());
Assert.assertTrue(dateRes == config.get(ConfigurationKeys.DATE_RESOLUTION));
DefaultPhraseSlopAttribute defaultPhraseSlopAttr = config
.addAttribute(DefaultPhraseSlopAttribute.class);