@Test
void shouldContainSingleElementAndPlaceHolder() {

    JenkinsFacade jenkins = mock(JenkinsFacade.class);
    Job<?, ?> job = mock(Job.class);
    String name = "Job Name";
    when(jenkins.getFullNameOf(job)).thenReturn(name);
    when(jenkins.getAllJobNames()).thenReturn(Collections.singleton(name));
    ModelValidation model = new ModelValidation(jenkins);
    ComboBoxModel actualModel = model.getAllJobs();
    assertThat(actualModel).hasSize(2);
    assertThat(actualModel).containsExactly(NO_REFERENCE_JOB, name);
}