@Test
public void getJobNamesTest() {

    final Collection<String> jobNames = new HashSet<>(Arrays.asList(JOB_NAMES));
    when(this.jobRegistry.getJobNames()).thenReturn(jobNames);
    final Set<String> fetchedJobNames = this.jobService.getJobNames();
    assertThat(fetchedJobNames).contains(JOB_NAME, JOB_NAME_2, JOB_NAME_3);
}