@Test
	public void testGetSingleBatchStepExecution() throws Exception {
		String s = mockMvc.perform(
				get("/jobs/executions/2/steps/1").accept(MediaType.APPLICATION_JSON)).andReturn().getResponse().getContentAsString();
		System.out.println(s);

		mockMvc.perform(
				get("/jobs/executions/2/steps/1").accept(MediaType.APPLICATION_JSON))
				.andExpect(status().isOk())
				.andExpect(jsonPath("stepExecution.id", Matchers.is(1)))
				.andExpect(jsonPath("jobExecutionId", Matchers.is(2)))
				.andExpect(jsonPath("stepExecution.jobParameters.empty", Matchers.is(false)))
				.andExpect(jsonPath("stepExecution.jobParameters.parameters.param1.value", Matchers.is("test")))
				.andExpect(jsonPath("stepExecution.jobParameters.parameters.param2.value", Matchers.is(123)))
				.andExpect(jsonPath("stepExecution.stepName", Matchers.is("step1")))
				.andExpect(jsonPath("stepExecution.executionContext.empty", Matchers.is(false)))
				.andExpect(jsonPath("stepExecution.executionContext.values", Matchers.not(Matchers.empty())))
				.andExpect(jsonPath("stepExecution.executionContext.values", Matchers.hasSize(1)))
				.andExpect(
						jsonPath("stepExecution.executionContext.values[?(@.key == 'contextTestKey')].value",
								Matchers.hasSize(1)));
	}
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