request3 = _requestRepo.save(request3);
assertEquals(2, _requestRepo.count(isMoreRecentThanOrEqualTo(request2.getRequestDate())));
assertEquals(1, _requestRepo.count(isMoreRecentThanOrEqualTo(request3.getRequestDate())));
assertEquals(3, _requestRepo.count(isMoreRecentThanOrEqualTo(request1.getRequestDate())));
final Sort sort = new Sort(Sort.Direction.DESC, SearchRequest_.requestDate.getName());
final List<SearchRequest> all = _requestRepo.findAll(isMoreRecentThanOrEqualTo(request2.getRequestDate()), sort);
assertEquals(2, all.size());
assertEquals(request3.getId(), all.get(0).getId());
assertEquals(request2.getId(), all.get(1).getId());