} catch (IllegalStateException e) {
// ok
}
assertThat(worker.query().from(criterionType).enforcedInAll(fromNow)
.result().size(), equalTo(1));
List<CriterionSatisfaction> finished = worker.finishEnforcedAt(
criterion, fromNow.getStart());
assertThat(finished.size(), equalTo(1));
assertTrue("all satisfactions are finished", worker.query().from(
criterionType).enforcedInAll(fromNow).result().isEmpty());
assertTrue(worker.canAddSatisfaction(new CriterionWithItsType(