PageRequestImpl implements PageRequest { @Override public Predicate getPredicate() { return predicate; } PageRequestImpl(StartingPoint startingPoint, int pageSize, int offset, Predicate predicate,
                         Comparator<Resource> comparator); @Override StartingPoint getStartingPoint(); @Override int getPageSize(); @Override int getOffset(); @Override Predicate getPredicate();  }
@Test public void testGetPredicate() throws Exception { PredicateBuilder pb = new PredicateBuilder(); Predicate predicate = pb.property("id").equals(20).toPredicate(); PageRequest pageRequest = new PageRequestImpl(PageRequest.StartingPoint.Beginning, 20, 99, predicate, null); Assert.assertEquals(predicate, pageRequest.getPredicate()); }