@Test
	public void createTypedJobParametersWithCustomDateFormat() throws Exception {

		final Message<String> message = MessageBuilder.withPayload(
				"{\"param1\":\"We should all use ISO dates\", \"mydate(date)\":\"2013-08-15T14:50Z\"}").build();

		final DateFormat isoDateformat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'");
		transformer.setDateFormat(isoDateformat);

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

		assertNotNull(jobParameters);
		assertTrue(jobParameters.getParameters().size() == 3);
		assertEquals(isoDateformat.parse("2013-08-15T14:50Z"), jobParameters.getDate("mydate"));
	}
@author Gunnar Hillert
@author Ilayaperumal Gopinathan
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/plugins/job/JobLaunchRequestTransformerTests.java