public void postEntitlement() {
Consumer c = mock(Consumer.class);
PoolHelper ph = mock(PoolHelper.class);
Entitlement e = mock(Entitlement.class);
ConsumerType type = mock(ConsumerType.class);
Pool pool = mock(Pool.class);
Product product = mock(Product.class);
when(e.getPool()).thenReturn(pool);
when(e.getConsumer()).thenReturn(c);
when(c.getType()).thenReturn(type);
when(type.isManifest()).thenReturn(true);
when(pool.getProductId()).thenReturn("testProd");
when(prodAdapter.getProductById(eq("testProd"))).thenReturn(product);
when(product.getAttributes()).thenReturn(new HashSet<ProductAttribute>());
when(pool.getAttributes()).thenReturn(new HashSet<PoolAttribute>());
assertEquals(ph, enforcer.postEntitlement(c, ph, e));
}