@Test
public void getJobInstanceCountTest() throws NoSuchJobException {

    final Integer expectedInstanceCount = 10;
    when(this.jobExplorer.getJobInstanceCount(JOB_NAME)).thenReturn(expectedInstanceCount);
    final Integer instanceCount = this.jobService.getJobInstanceCount(JOB_NAME);
    assertThat(instanceCount).isEqualTo(expectedInstanceCount);
}