@Test
public void testListForConsumerExcludesWarnings() {
Page<List<Pool>> results =
poolManager.listAvailableEntitlementPools(parentSystem, null,
parentSystem.getOwner(), (String) null, null, true, false,
new PoolFilterBuilder(), new PageRequest());
assertEquals(4, results.getPageData().size());
Pool pool = createPoolAndSub(o, socketLimitedProduct, 100L,
TestUtil.createDate(2000, 3, 2), TestUtil.createDate(2050, 3, 2));
poolCurator.create(pool);
parentSystem.setFact("cpu.cpu_socket(s)", "4");
results = poolManager.listAvailableEntitlementPools(parentSystem, null,
parentSystem.getOwner(), (String) null, null, true, false,
new PoolFilterBuilder(), new PageRequest());
// Pool in error should not be included. Should have the same number of
// initial pools.
assertEquals(4, results.getPageData().size());
}