public void init() {
taskletStep = new TaskletStep();
taskletStep.setTasklet(new ExceptionTasklet());
jobRepository = new UpdateCountingJobRepository();
taskletStep.setJobRepository(jobRepository);
taskletStep.setTransactionManager(new ResourcelessTransactionManager());
JobInstance jobInstance = new JobInstance(1L, "testJob");
JobExecution jobExecution = new JobExecution(jobInstance, new JobParameters());
stepExecution = new StepExecution("testStep", jobExecution);
}