Pool pool = createPool(owner, product);
pool.setQuantity(new Long(100));
when(this.prodAdapter.getProductById(productId)).thenReturn(product);
ValidationResult result = enforcer.preEntitlement(consumer, pool, 10);
assertFalse(result.isSuccessful());
assertTrue(result.hasErrors());
assertEquals(1, result.getErrors().size());
assertTrue(result.getErrors().get(0).getResourceKey().contains(
"multi-entitlement"));
}