private MockEndpoint result;
@Test
public void testPreserveHeaders() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedMinimumMessageCount(1);
mock.expectedBodiesReceived("some payload");
mock.expectedHeaderReceived("MyHeader", "HeaderValue");
template.sendBodyAndHeader("direct:start", "some payload", "MyHeader", "HeaderValue");
assertMockEndpointsSatisfied();