assertFalse(pageNavigation.hasPreviousPage());
assertFalse(pageNavigation.hasNextPage());
assertTrue(pageNavigation.hasRequestedPage());
// http://127.0.0.1:5984/couch-test/_design/pet/_view/byTypeAndId?startkey=[%22DOG%22,%205]&endkey=[%22DOG%22,%207]
viewQuery = CouchViewQuery.builder("pet", "byTypeAndId").limit(10).start(new CouchJsonKey("DOG", 5)).end(new CouchJsonKey("DOG", 7)).build();
er = couchDatabase.get().entity(PetEntity.class, viewQuery).execute();
pageNavigation = er.getCouchPageNavigation();
// assertEquals(pageNavigation.requestedPage, "_design/pet/_view/byTypeAndId?include_docs=true&startkey=%5B%[%22DOG%22,%205]&endkey=%5B%[%22DOG%22,%207]&limit=10")
assertEquals(er.getSize(), 3);
foundPets = er.getEntityList();