@Test
public void testShouldMatchAnsweredFlagUnSet() throws Exception {
builder.setFlags(true, true, false, true, true, true);
Message<Long> row = builder.build();
recent.add(new Long(row.getUid()));
assertFalse(new MessageSearches().isMatch(SearchQuery.flagIsUnSet(Flags.Flag.SEEN),
row, recent, log));
assertFalse(new MessageSearches().isMatch(SearchQuery
.flagIsUnSet(Flags.Flag.FLAGGED), row, recent, log));
assertTrue(new MessageSearches().isMatch(SearchQuery
.flagIsUnSet(Flags.Flag.ANSWERED), row, recent, log));
assertFalse(new MessageSearches().isMatch(SearchQuery.flagIsUnSet(Flags.Flag.DRAFT),
row, recent, log));
assertFalse(new MessageSearches().isMatch(SearchQuery
.flagIsUnSet(Flags.Flag.DELETED), row, recent, log));
assertFalse(new MessageSearches().isMatch(
SearchQuery.flagIsUnSet(Flags.Flag.RECENT), row, recent, log));
}