/**
* Test method for {@link SimpleJobService#getJobExecution(Long)}.
*/
@Test
public void testGetJobExecution() throws Exception {
JobExecution jobExecution = MetaDataInstanceFactory.createJobExecution(123L);
JobInstance jobInstance = jobExecution.getJobInstance();
jobExecution.setJobInstance(null);
EasyMock.expect(jobExecutionDao.getJobExecution(123L)).andReturn(jobExecution);
EasyMock.expect(jobInstanceDao.getJobInstance(jobExecution)).andReturn(jobInstance);
EasyMock.expect(executionContextDao.getExecutionContext(jobExecution)).andReturn(new ExecutionContext());
stepExecutionDao.addStepExecutions(jobExecution);
EasyMock.expectLastCall();
EasyMock.replay(stepExecutionDao, jobExecutionDao, jobInstanceDao, executionContextDao);
JobExecution result = service.getJobExecution(123L);
assertNotNull(result);
assertNotNull(result.getJobInstance());
EasyMock.verify(stepExecutionDao, jobExecutionDao, jobInstanceDao, executionContextDao);
}