public void testJobParameterIncrementer() {
jobParameterIncrementer.setKey("test-param-incrementer");
when(mockedJob.getJobParametersIncrementer()).thenReturn(jobParameterIncrementer);
final Message<String> message = MessageBuilder.withPayload("{\"test-param-incrementer(long)\":\"1234\"}").build();
final JobLaunchRequest jobLaunchRequest = transformer.toJobLaunchRequest(message);
assertNotNull(jobLaunchRequest.getJobParameters());
assertTrue(jobLaunchRequest.getJobParameters().getParameters().size() == 2);
// Now check if the job parameter is incremented
assertEquals(Long.valueOf(1235), jobLaunchRequest.getJobParameters().getLong("test-param-incrementer"));
}