@Test
void doCheckReferenceJobShouldBeOkWithValidValues() {

    JenkinsFacade jenkins = mock(JenkinsFacade.class);
    Job<?, ?> job = mock(Job.class);
    String jobName = "referenceJob";
    when(jenkins.getJob(jobName)).thenReturn(Optional.of(job));
    ModelValidation model = new ModelValidation(jenkins);
    assertThat(model.validateJob(jobName)).isOk();
    assertThat(model.validateJob(NO_REFERENCE_JOB)).isOk();
    assertThat(model.validateJob("")).isOk();
}