req.setPage(1);
req.setPerPage(10);
req.setOrder(PageRequest.Order.ASCENDING);
req.setSortBy("id");
PoolFilterBuilder filters = new PoolFilterBuilder();
filters.addIdFilter(pool2.getId());
Page<List<Pool>> page = poolCurator.listAvailableEntitlementPools(
null, owner, null, activeDate, false, filters,
req, false);
List<Pool> results = page.getPageData();
assertEquals(1, results.size());
assertEquals(pool2.getId(), results.get(0).getId());
filters = new PoolFilterBuilder();
filters.addIdFilter(pool1.getId());
filters.addIdFilter(pool2.getId());
page = poolCurator.listAvailableEntitlementPools(
null, owner, null, activeDate, false, filters,
req, false);
results = page.getPageData();