ConstraintContext constraintContext = new ConstraintContext(job, now, store); assertSatisfied(true, concurrencyConstraint.check(schedule, constraintContext)); assertSatisfied(true, concurrencyConstraint.check(schedule, constraintContext)); assertSatisfied(false, concurrencyConstraint.check(schedule, constraintContext)); assertSatisfied(false, concurrencyConstraint.check(schedule, constraintContext)); assertSatisfied(false, concurrencyConstraint.check(schedule, constraintContext)); assertSatisfied(false, concurrencyConstraint.check(schedule, constraintContext)); store.setResume(pid3, AppFabricTestHelper.createSourceId(++sourceId), -1); assertSatisfied(false, concurrencyConstraint.check(schedule, constraintContext)); assertSatisfied(true, concurrencyConstraint.check(schedule, constraintContext)); assertSatisfied(true, concurrencyConstraint.check(schedule, constraintContext));