@Test
	public void createJobParametersUsingMapWithUniqueParam() throws Exception {

		final Map<String, String> map = new HashMap<String, String>();
		map.put("param1", "Kenny");
		map.put("param2", "Cartman");

		final Message<Map<String, String>> message = MessageBuilder.withPayload(map).build();

		final JobLaunchRequest jobLaunchRequest = transformer.toJobLaunchRequest(message);

		assertNotNull(jobLaunchRequest.getJobParameters());
		assertTrue(jobLaunchRequest.getJobParameters().getParameters().size() == 3);

		assertEquals("Kenny", jobLaunchRequest.getJobParameters().getString("param1"));
		assertEquals("Cartman", jobLaunchRequest.getJobParameters().getString("param2"));
		assertNotNull(jobLaunchRequest.getJobParameters().getString("random"));

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