StepParserStepFactoryBean<Object, Object> fb = new StepParserStepFactoryBean<Object, Object>();
fb.setName("step");
fb.setTransactionManager(new ResourcelessTransactionManager());
fb.setJobRepository(new JobRepositorySupport());
fb.setTasklet(new DummyTasklet());
fb.setTaskExecutor(new SimpleAsyncTaskExecutor());
Object step = fb.getObject();
assertTrue(step instanceof TaskletStep);
Object stepOperations = ReflectionTestUtils.getField(step, "stepOperations");
assertTrue(stepOperations instanceof TaskExecutorRepeatTemplate);
}