job = jobs.get("job").start(this.steps.get("step").tasklet(new Tasklet() {
@Override
public RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws Exception {
throw new RuntimeException("Planned");
}
}).build()).incrementer(new RunIdIncrementer()).build();
JobParameters jobParameters = new JobParametersBuilder().addLong("id", 1L, false).toJobParameters();
runner.executeJob(job, jobParameters);
runner.executeJob(job, jobParameters);
assertEquals(1, jobExplorer.getJobInstances("job", 0, 100).size());
}