when(productAdapterMock.getProductById(s.getProduct().getId()))
.thenReturn(s.getProduct());
// Setup a pool with a single (different) provided product:
Pool p = TestUtil.copyFromSub(s);
p.addAttribute(new PoolAttribute("virt_only", "true"));
p.addAttribute(new PoolAttribute("pool_derived", "true"));
p.setQuantity(40L);
List<Pool> existingPools = Arrays.asList(p);
List<PoolUpdate> updates = this.poolRules.updatePools(s, existingPools);