@Test
public void testQueryPage() throws IOException {

  createQueryFixtures();
  Filter filter = Filter.equalsFilter(DUserMapper.Field.DISPLAYNAME.getFieldName(), "mod7_3");
  CursorPage<DUser> firstPage = userDao.queryPage(false, 5, null,
    null, false, null, false,
    null, null,
    filter);
  assertEquals(Integer.valueOf(9), firstPage.getTotalSize());
  assertNotNull(firstPage.getCursorKey());
  assertEquals(5, firstPage.getItems().size());
  CursorPage<DUser> secondPage = userDao.queryPage(false, 5, null,
    null, false, null, false,
    null, firstPage.getCursorKey(), filter);
  assertNull(secondPage.getTotalSize());
  assertNull(secondPage.getCursorKey());
  assertEquals(4, secondPage.getItems().size());
}