@Test
public void testAttachStepExecutions() {

    final JobExecution jobExecution = DomainTestHelper.createJobExecution(20L);
    when(this.jobExplorer.getJobExecution(jobExecution.getId())).thenReturn(jobExecution);
    this.stepService.attachStepExecutions(jobExecution);
    verify(this.jobExplorer, times(1)).getJobExecution(jobExecution.getId());
}