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);
Assert.assertEquals(0, defaultPhraseSlopAttr.getDefaultPhraseSlop());
Assert
.assertEquals(0, config.get(ConfigurationKeys.PHRASE_SLOP).intValue());
int phraseSlop = 1;
defaultPhraseSlopAttr.setDefaultPhraseSlop(phraseSlop);
Assert.assertEquals(phraseSlop, defaultPhraseSlopAttr
.getDefaultPhraseSlop());
Assert.assertEquals(phraseSlop, config.get(ConfigurationKeys.PHRASE_SLOP)
.intValue());
FieldBoostMapAttribute fieldBoostMapAttr = config