@Test
public void testMapStepExecutions() {

    final int count = 5;
    final List<org.springframework.batch.core.StepExecution> stepExecutions = new LinkedList<>();
    for (int i = 0; i < count; i++) {
        final org.springframework.batch.core.StepExecution stepExecution =
                DomainTestHelper.createStepExecution("testStep", DomainTestHelper.createJobExecution(1L));
        stepExecutions.add(stepExecution);
    }
    final List<StepExecution> result = BatchToResourceMapper.mapStepExecutions(stepExecutions);
    assertThat(result).hasSize(count);
}