PageRequestImpl implements PageRequest { @Override public StartingPoint getStartingPoint() { return startingPoint; } 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 testGetStartingPoint() throws Exception { PageRequest pageRequest = new PageRequestImpl(PageRequest.StartingPoint.Beginning, 20, 99, null, null); Assert.assertEquals(PageRequest.StartingPoint.Beginning, pageRequest.getStartingPoint()); }