Entitlement entitlement = createEntitlement(owner, consumer, pool1, cert);
entitlement.setQuantity(1);
entitlementCurator.create(entitlement);
pool1.getEntitlements().add(entitlement);
OwnerInfo info = ownerInfoCurator.lookupByOwner(owner);
Map<String, OwnerInfo.ConsumptionTypeCounts> expected =
new HashMap<String, OwnerInfo.ConsumptionTypeCounts>() {
{
put("test family", new OwnerInfo.ConsumptionTypeCounts(1, 0));
}
};
assertEquals(expected, info.getEntitlementsConsumedByFamily());
}