@Test
public void testMapExecution() {

    final org.springframework.batch.core.JobExecution jobExecution = DomainTestHelper.createJobExecution((long) 1);
    final org.springframework.batch.core.JobInstance jobInstance = DomainTestHelper.createJobInstance((long) 1, "test");
    jobExecution.setJobInstance(jobInstance);
    final JobExecution result = BatchToResourceMapper.map(jobExecution);
    this.assertJobExecution(result, jobExecution);
}