JobParametersSequenceIncrementer implements JobParametersIncrementer { @Override public JobParameters getNext(final JobParameters jobParameters) { JobParametersBuilder builder = new JobParametersBuilder(jobParameters); builder.addLong(INCREMENTER_PARAMETER_NAME, sequence.nextLongValue()); return builder.toJobParameters(); }  @Override JobParameters getNext(final JobParameters jobParameters); void setSequence(final DataFieldMaxValueIncrementer sequence); static final String INCREMENTER_PARAMETER_NAME; }
@Test public void testGetNext() throws Exception { JobParameters jobParameters = jobParametersIncrementer.getNext(new JobParameters()); Assert.assertNotNull(jobParameters.getLong(JobParametersSequenceIncrementer.INCREMENTER_PARAMETER_NAME)); }