JsrPartitionHandler partitionHandler = new JsrPartitionHandler();
partitionHandler.setPropertyContext(new BatchPropertyContext());
partitionHandler.setPartitions(3);
partitionHandler.setJobRepository(jobRepository);
partitionHandler.setStep(new StubStep("subStep"));
partitionHandler.afterPropertiesSet();
step.setPartitionHandler(partitionHandler);
step.setStepExecutionSplitter(new JsrStepExecutionSplitter(jobRepository, false, "step1", true));
step.setJobRepository(jobRepository);
step.afterPropertiesSet();
transitions.add(StateTransition.createStateTransition(new StepState("job.step", step), "end0"));