@Test
	public void testSerializationOfSingleStepExecution() throws JsonProcessingException {

		final ObjectMapper objectMapper = new ObjectMapper();

		objectMapper.addMixIn(StepExecution.class, StepExecutionJacksonMixIn.class);
		objectMapper.addMixIn(ExecutionContext.class, ExecutionContextJacksonMixIn.class);

		final StepExecution stepExecution = getStepExecution();
		final String result = objectMapper.writeValueAsString(stepExecution);

		assertThat(result, not(containsString("\"executionContext\":{\"dirty\":true,\"empty\":false}")));
		assertThat(result, containsString("\"executionContext\":{\"dirty\":true,\"empty\":false,\"values\":[{"));

		assertThat(result, containsString("{\"key\":\"counter\",\"value\":1234}"));
		assertThat(result, containsString("{\"key\":\"myDouble\",\"value\":1.123456}"));
		assertThat(result, containsString("{\"key\":\"Josh\",\"value\":4444444444}"));
		assertThat(result, containsString("{\"key\":\"awesomeString\",\"value\":\"Yep\"}"));
		assertThat(result, containsString("{\"key\":\"hello\",\"value\":\"world\""));
		assertThat(result, containsString("{\"key\":\"counter2\",\"value\":9999}"));
	}
Assert that by using the {@link ExecutionContextJacksonMixIn} Jackson renders the Step Execution Context
correctly.

@throws JsonProcessingException
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/plugins/job/support/StepExecutionJacksonMixInTests.java