@Test
	public void testGetBatchStepExecutions() throws Exception {
		mockMvc.perform(
				get("/jobs/executions/2/steps").accept(MediaType.APPLICATION_JSON))
				.andExpect(status().isOk())
				.andExpect(jsonPath("$", Matchers.hasSize(3)))
				.andExpect(jsonPath("$[*].stepExecution.id", contains(1, 2, 3)))
				.andExpect(jsonPath("$[*].jobExecutionId", contains(2, 2, 2)))
				.andExpect(jsonPath("$[*].stepExecution.stepName", contains("step1", "step2", "step3")))
				.andExpect(jsonPath("$[*].links[*].href", contains(
						"http://localhost/jobs/executions/2/steps/1",
						"http://localhost/jobs/executions/2/steps/2",
						"http://localhost/jobs/executions/2/steps/3")));
	}
Tests REST compliance of {@link BatchStepExecutionsController} endpoints.

@author Gunnar Hillert
@since 1.0
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/rest/BatchStepExecutionsControllerIntegrationTests.java