public void testInitialCreationSingleThreadUsingStepScope() throws Exception {
factoryBean.setBatchPropertyContext(propertyContext);
StepSynchronizationManager.register(new StepExecution("step1", new JobExecution(5L)));
JobContext jobContext = factoryBean.getObject();
assertEquals(5L, jobContext.getExecutionId());
StepSynchronizationManager.close();
}