@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());
}