@Test
	public void testGetBatchJobExecutions() throws Exception {
		mockMvc.perform(
				get("/jobs/executions").accept(
						MediaType.APPLICATION_JSON)).andExpect(status().isOk())
				.andExpect(
						jsonPath("$.content", Matchers.hasSize(2))).andExpect(jsonPath("$.content[*].executionId", contains(0, 3))).andExpect(
				jsonPath("$.content[*].jobExecution.stepExecutions[*]", Matchers.hasSize(3))).andExpect(
				jsonPath("$.content[*].jobId", contains(0, 2))).andExpect(jsonPath("$.content[*].deleted", contains(true, true))).andExpect(
				jsonPath("$.content[*].deployed", contains(false, false))).andExpect(
				jsonPath("$.content[*].jobExecution.id", contains(0, 3))).andExpect(
				jsonPath("$.content[*].jobExecution.jobParameters.parameters.param1.value", contains("test", "test"))).andExpect(
				jsonPath("$.content[*].jobExecution.jobParameters.parameters.param1.type", contains("STRING", "STRING"))).andExpect(
				jsonPath("$.content[*].jobExecution.jobParameters.parameters.param1.identifying", contains(true, true))).andExpect(
				jsonPath("$.content[*].jobExecution.jobParameters.parameters.param2.value", contains(123, 123))).andExpect(
				jsonPath("$.content[*].jobExecution.jobParameters.parameters.param2.type", contains("LONG", "LONG"))).andExpect(
				jsonPath("$.content[*].jobExecution.jobParameters.parameters.param2.identifying", contains(false, false)));
	}
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