@Test
public void testCleanOldJobsNoJobs() {

    Long jobTimeoutTime = 1L;
    jobSupervisor = new JobSupervisor(jobDAOProvider, jobTimeoutTime);
    List<Long> jobIDs = Arrays.asList(new Long[] {});
    when(jobDaoMock.getAllJobIds(JobStatus.STARTED)).thenReturn(jobIDs.iterator());
    jobSupervisor.cleanOldJobs();
    verify(jobDaoMock).getAllJobIds(JobStatus.STARTED);
    verifyNoMoreInteractions(jobDaoMock);
}