@Test
	public void createTypedJobParameters() throws Exception {

		final Message<String> message = MessageBuilder.withPayload(
				"{\"param1(long)\":\"1234\", \"mydate(date)\":\"1978-05-01\"}").build();

		transformer.setMakeParametersUnique(false);
		final JobLaunchRequest jobLaunchRequest = transformer.toJobLaunchRequest(message);
		final JobParameters jobParameters = jobLaunchRequest.getJobParameters();

		assertNotNull(jobParameters);
		assertTrue(jobParameters.getParameters().size() == 2);

		assertEquals("1234", jobParameters.getString("param1"));
		assertEquals(Long.valueOf(1234), jobParameters.getLong("param1"));

		final DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd");
		assertEquals(dateFormat.parse("1978/05/01"), jobParameters.getDate("mydate"));

	}
@author Gunnar Hillert
@author Ilayaperumal Gopinathan
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/plugins/job/JobLaunchRequestTransformerTests.java