@Test
	public void createJobParametersWithInvalidJSON() throws Exception {

		final Message<String> message = MessageBuilder.withPayload("this should fail").build();

		try {
			transformer.toJobLaunchRequest(message);
		}
		catch (IllegalArgumentException e) {
			assertEquals("Unable to convert provided JSON to Map<String, Object>", e.getMessage());
			return;
		}

		fail("Expected an IllegalStateException to be thrown.");
	}
@author Gunnar Hillert
@author Ilayaperumal Gopinathan
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/plugins/job/JobLaunchRequestTransformerTests.java