// Skip to last (page 4)
CouchViewQuery viewQuery = CouchViewQuery.builder("pet", "byId").limit(3).build();
GetEntityResponse<PetEntity> er = couchDatabase.get().entity(PetEntity.class, viewQuery).execute();
CouchPageNavigation pageNavigation = er.getCouchPageNavigation();
while (pageNavigation.hasNextPage()) {
er = couchDatabase.get().entity(PetEntity.class, pageNavigation.queryNextPage()).execute();
pageNavigation = er.getCouchPageNavigation();
}
assertEquals(er.getSize(), 1);
List<PetEntity> foundPets = er.getEntityList();
assertEquals(foundPets.get(0), pets[9]);