owner.addEntitlementPool(pool1);
pool1.setProductAttribute("product_family", "test family", pool1.getProductId());
pool1.setProductAttribute("virt_only", "true", pool1.getProductId());
ConsumerType type = consumerTypeCurator.lookupByLabel("system");
Consumer consumer = new Consumer("test-consumer", "test-user", owner, type);
consumerCurator.create(consumer);
EntitlementCertificate cert = createEntitlementCertificate("fake", "fake");
Entitlement entitlement = createEntitlement(owner, consumer, pool1, cert);