public void testRequestAsyncBodyAndHeadersType() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedBodiesReceived("Hello World");
mock.expectedHeaderReceived("foo", 123);
mock.expectedHeaderReceived("bar", "cheese");
Map<String, Object> headers = new HashMap<String, Object>();
headers.put("foo", 123);
headers.put("bar", "cheese");
Future<String> future = template.asyncRequestBodyAndHeaders("direct:start", "Hello", headers, String.class);