@Test
	public void testGetSingleBatchJobExecution() throws Exception {
		mockMvc.perform(
				get("/jobs/executions/0").accept(MediaType.APPLICATION_JSON)).andExpect(status().isOk())
				.andExpect(jsonPath("$.executionId", Matchers.is(0)))
				.andExpect(jsonPath("$.jobExecution.id", Matchers.is(0)))
				.andExpect(jsonPath("$.jobExecution.jobParameters.parameters.param1.type", Matchers.is("STRING")))
				.andExpect(jsonPath("$.jobExecution.jobParameters.parameters.param1.identifying", Matchers.is(true)))
				.andExpect(jsonPath("$.jobExecution.jobParameters.parameters.param1.value", Matchers.is("test")))
				.andExpect(jsonPath("$.jobExecution.jobParameters.parameters.param2.type", Matchers.is("LONG")))
				.andExpect(jsonPath("$.jobExecution.jobParameters.parameters.param2.identifying", Matchers.is(false)))
				.andExpect(jsonPath("$.jobExecution.jobParameters.parameters.param2.value", Matchers.is(123)))
				.andExpect(jsonPath("$.jobExecution.stepExecutions", Matchers.hasSize(2)))
				.andExpect(jsonPath("$.stepExecutionCount", Matchers.is(2)))
				.andExpect(jsonPath("$.name", Matchers.is("job1")));
	}
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