@Test
public void testShouldMatchCapsHeaderDateAfter() throws Exception {
builder.header(DATE_FIELD.toUpperCase(), RFC822_SUN_SEP_9TH_2001);
Message<Long> row = builder.build();
assertTrue(new MessageSearches().isMatch(SearchQuery.headerDateAfter(DATE_FIELD, getDate(9,
9, 2000), DateResolution.Day), row, recent, log));
assertTrue(new MessageSearches().isMatch(SearchQuery.headerDateAfter(DATE_FIELD, getDate(8,
9, 2001), DateResolution.Day), row, recent, log));
assertFalse(new MessageSearches().isMatch(SearchQuery.headerDateAfter(DATE_FIELD, getDate(9,
9, 2001), DateResolution.Day), row, recent, log));
assertFalse(new MessageSearches().isMatch(SearchQuery.headerDateAfter(DATE_FIELD,
getDate(10, 9, 2001), DateResolution.Day), row, recent, log));
assertFalse(new MessageSearches().isMatch(SearchQuery.headerDateAfter(DATE_FIELD, getDate(9,
9, 2002), DateResolution.Day), row, recent, log));
assertFalse(new MessageSearches().isMatch(SearchQuery.headerDateAfter("BOGUS", getDate(9, 9,
2001), DateResolution.Day), row, recent, log));
}