Worker worker = Worker.create("firstName", "surName", "2333232");
ICriterionType<Criterion> criterionType = createTypeThatMatches(false,
criterion, otherCriterion);
worker.addSatisfaction(new CriterionWithItsType(criterionType,
otherCriterion), Interval.range(year(3500), year(4500)));
assertFalse(worker.canAddSatisfaction(new CriterionWithItsType(
criterionType, criterion), Interval.range(year(3600),
year(3800))));
worker.addSatisfaction(new CriterionWithItsType(criterionType,
criterion), Interval.range(year(3600), year(3800)));
}