@Test
	public void testSuccessfulJobCreateAndDeploy() throws Exception {
		mockMvc.perform(
				post("/jobs/definitions").param("name", "job5").param("definition", JOB_DEFINITION).accept(
						MediaType.APPLICATION_JSON)).andExpect(status().isCreated());
		JobDefinition jobDefinition = jobDefinitionRepository.findOne("job5");
		assertNotNull(jobDefinition);
		assertEquals("job5", jobDefinition.getName());
		assertNotNull(xdJobRepository.findOne(jobDefinition.getName()));
	}
Tests REST compliance of jobs-related endpoints.

@author Glenn Renfro
@author Ilayaperumal Gopinathan
@author Mark Fisher
@author Florent Biville
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/rest/JobsControllerIntegrationTests.java