Assert.assertEquals(resultingMessage.getHeaderData().get(0), "This header data contains variables!");
}
@Test
public void testMessageBuilderInterceptor() {
MessageConstructionInterceptor interceptor = new AbstractMessageConstructionInterceptor() {
@Override
public Message interceptMessage(Message message, String messageType, TestContext context) {
message.setPayload("InterceptedMessagePayload");
message.setHeader("NewHeader", "new");