@Test
public void getJobInstanceTest() {

    final Long jobInstanceId = 20L;
    when(this.jobExplorer.getJobInstance(jobInstanceId)).thenReturn(
            DomainTestHelper.createJobInstance(jobInstanceId, JOB_NAME));
    final JobInstance jobInstance = this.jobService.getJobInstance(jobInstanceId);
    assertThat(jobInstance).isNotNull();
    assertThat(jobInstance.getInstanceId()).isEqualTo(jobInstanceId);
    assertThat(jobInstance.getJobName()).isEqualTo(JOB_NAME);
}