@Test
public void getJobExecutionCountTest() {

    final Integer count = 10;
    when(this.lightminJobExecutionDao.getJobExecutionCount(any(JobInstance.class))).thenReturn(count);
    final Integer resultCount = this.jobService.getJobExecutionCount(new JobInstance(1L, "testjob"));
    assertThat(resultCount).isEqualTo(count);
}