@Test
public void getStepExecutionTest() {

    final JobExecution jobExecution = DomainTestHelper.createJobExecution(10L);
    final Long stepExecutionId = 20L;
    when(this.jobExplorer.getStepExecution(jobExecution.getId(), stepExecutionId)).thenReturn(
            DomainTestHelper.createStepExecution(STEP_NAME, jobExecution));
    final StepExecution stepExecution = this.stepService.getStepExecution(jobExecution, stepExecutionId);
    assertThat(stepExecution).isNotNull();
    assertThat(stepExecution.getStepName()).isEqualTo(STEP_NAME);
}