@Test
public void testFindHardConstraint() {

    Job<BatchJobExt> job = JobFunctions.appendHardConstraint(JobGenerator.oneBatchJob(), "MyConstraint", "good");
    assertThat(JobFunctions.findHardConstraint(job, "myConstraint")).contains("good");
    assertThat(JobFunctions.findSoftConstraint(job, "myConstraint")).isEmpty();
}