query.andCriteria(SearchQuery.mailContains(RHUBARD));
Iterator<Long> result = index.search(null, mailbox3, query);
assertEquals(10L, result.next().longValue());
assertFalse(result.hasNext());
query.andCriteria(SearchQuery.mailContains(RHUBARD.toLowerCase(Locale.US)));
result = index.search(null, mailbox3, query);
assertEquals(10L, result.next().longValue());
assertFalse(result.hasNext());
}