CompositeJobParametersExtractor implements JobParametersExtractor { @Override public JobParameters getJobParameters(Job job, StepExecution stepExecution) { Map<String, JobParameter> jobParametersMap = new HashMap<>(); for (JobParametersExtractor delegate : delegates) { jobParametersMap.putAll(delegate.getJobParameters(job, stepExecution).getParameters()); } return new JobParameters(jobParametersMap); }  @Override JobParameters getJobParameters(Job job, StepExecution stepExecution); void setDelegates(JobParametersExtractor[] delegates);  }
@Test public void testGetJobParameters() throws Exception { StepExecution stepExecution = MetaDataInstanceFactory.createStepExecution(); Assert.assertNotNull(jobParametersExtractor.getJobParameters(new FlowJob(), stepExecution).getDate("date")); }