@Test
public void mergedProvidedProducts() {
stackedEnts.add(createEntFromPool(pool1));
stackedEnts.add(createEntFromPool(pool3));
PoolUpdate update = poolRules.updatePoolFromStack(stackDerivedPool);
assertTrue(update.getProductsChanged());
assertEquals(3, stackDerivedPool.getProvidedProducts().size());
assertTrue(stackDerivedPool.getProvidedProducts().contains(
new ProvidedProduct(provided1.getId(), provided1.getName())));
assertTrue(stackDerivedPool.getProvidedProducts().contains(
new ProvidedProduct(provided2.getId(), provided2.getName())));