@Test
	public void testSuccessfulJobLaunch() throws Exception {
		QueueChannel channel = new QueueChannel();
		messageBus.bindConsumer("job:joblaunch", channel, null);
		mockMvc.perform(
				post("/jobs/definitions").param("name", "joblaunch").param("definition", JOB_DEFINITION).accept(
						MediaType.APPLICATION_JSON)).andExpect(status().isCreated());
		mockMvc.perform(
				post("/jobs/executions").param("jobname", "joblaunch").accept(MediaType.APPLICATION_JSON)).andExpect(
				status().isCreated());
		assertNotNull(channel.receive(3000));
	}
Tests REST compliance of {@link BatchJobExecutionsController} endpoints.

@author Ilayaperumal Gopinathan
@author Gunnar Hillert
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/rest/BatchJobExecutionsControllerIntegrationTests.java