}
@Test
public void testSearchUidRange() throws Exception {
SearchQuery q2 = new SearchQuery();
Calendar cal = Calendar.getInstance();
cal.setTime(new Date());
q2.andCriteria(SearchQuery.uid(new SearchQuery.NumericRange[] {new SearchQuery.NumericRange(1), new SearchQuery.NumericRange(2,3)}));
Iterator<Long> it4 = index.search(null, mailbox, q2);
assertEquals(1L, it4.next().longValue());
assertEquals(2L, it4.next().longValue());
assertEquals(3L, it4.next().longValue());