@Test
public void testActiveEntitlementJobStillInactive() throws JobExecutionException {
// Future pool
Pool p = createPoolAndSub(owner, prod, 5L, Util.tomorrow(), Util.addDaysToDt(10));
Entitlement ent = this.createEntitlement(owner, consumer, p,
createEntitlementCertificate("entkey", "ecert"));
// Needs to be flipped, eventually
ent.setUpdatedOnStart(false);
entitlementCurator.create(ent);
consumerCurator.refresh(consumer);
assertFalse("valid".equals(consumer.getEntitlementStatus()));
job.toExecute(null);
consumerCurator.refresh(consumer);
// still not valid. Probably not even set, but that doesn't matter
assertFalse("valid".equals(consumer.getEntitlementStatus()));
// Should not have changed
assertFalse(entitlementCurator.find(ent.getId()).isUpdatedOnStart());
}