Pool pool = createPoolAndSub(owner, product, 1L,
dateSource.currentDate(), createDate(2020, 1, 1));
poolCurator.create(pool);
for (int i = 0; i < 10; i++) {
EntitlementCertificate cert =
createEntitlementCertificate("key", "certificate");
Entitlement ent = createEntitlement(owner, consumer, pool, cert);
entitlementCurator.create(ent);
}
Product product2 = TestUtil.createProduct();
productCurator.create(product2);
Pool pool2 = createPoolAndSub(owner, product2, 1L,
dateSource.currentDate(), createDate(2020, 1, 1));
poolCurator.create(pool2);
for (int i = 0; i < 10; i++) {
EntitlementCertificate cert =
createEntitlementCertificate("key", "certificate");
Entitlement ent2 = createEntitlement(owner, consumer, pool2, cert);
entitlementCurator.create(ent2);
}