assertNotNull(poolCurator.findUeberPool(owner));
}
@Test
public void testUeberCertIsRegeneratedOnNextInvocation() throws Exception {
EntitlementCertificate firstCert
= or.createUeberCertificate(principal, owner.getKey());
Product firstProduct = productCurator.lookupByName(owner.getKey() + UEBER_PRODUCT);
EntitlementCertificate secondCert
= or.createUeberCertificate(principal, owner.getKey());
Product secondProduct = productCurator.lookupByName(owner.getKey() + UEBER_PRODUCT);
//make sure we didn't regenerate the whole thing
assertTrue(firstProduct.getId() == secondProduct.getId());
// only the ueber cert
assertFalse(firstCert.getId() == secondCert.getId());
}