@Test
	public void testGetJobInstanceExecutionsByInvalidJobName() throws Exception {
		mockMvc.perform(
				get("/jobs/instances/101").accept(MediaType.APPLICATION_JSON)).andExpect(status().isNotFound())
				.andExpect(jsonPath("$[0].message", Matchers.is("Batch Job with the name job2 doesn't exist")));
	}
Tests REST compliance of {@link BatchJobInstancesController} endpoints.

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