assertNotSame(pagination, results.getPagination());
assertPagination(results.getPagination(), 1, true, false, true, false, 2, 5);
// page(5) doesn't exist yet, so we get the largest known page, page 2
pagination = results.getPagination();
results = dao.retrieveTestEntities(pagination.page(5));
assertFound(results, "entity7", "entity8", "entity9", "entity11", "entity12");
assertNotSame(pagination, results.getPagination());
assertPagination(results.getPagination(), 2, true, true, true, false, 3, 10);
// next() retrieves page 3, and we know there are at least 4 pages