when(module.getComponent("stepExecutionReplies.output", MessageChannel.class)).thenReturn(stepResultsOut);
jobPartitionerPlugin.preProcessModule(module);
jobPartitionerPlugin.postProcessModule(module);
checkBusBound(messageBus);
stepsOut.send(new GenericMessage<String>("foo"));
Message<?> stepExecutionRequest = stepsIn.receive(10000);
assertThat(stepExecutionRequest, hasPayload("foo"));
stepResultsOut.send(MessageBuilder.withPayload("bar")
.copyHeaders(stepExecutionRequest.getHeaders()) // replyTo
.build());
assertThat(stepResultsIn.receive(10000), hasPayload("bar"));