"testattr2", "2", pool1.getProductId()));
stackedEnts.clear();
stackedEnts.add(createEntFromPool(pool1));
stackedEnts.add(createEntFromPool(pool2));
PoolUpdate update = poolRules.updatePoolFromStack(stackDerivedPool);
assertEquals(new Long("-1"), stackDerivedPool.getQuantity());
stackedEnts.remove(0);
update = poolRules.updatePoolFromStack(stackDerivedPool);
assertTrue(update.changed());
assertTrue(update.getDatesChanged());
assertFalse(update.getQuantityChanged());
assertEquals(new Long("-1"), stackDerivedPool.getQuantity());
}