exchange.getIn().setHeader("test", "abc");
exchange.getIn().setHeader(Exchange.HTTP_QUERY, "x=y");
TaskOptions options = withDefaults();
binding.writeRequestHeaders(endpoint, exchange, options);
queue.add(options);
TaskStateInfo info = getTaskStateInfos().get(0);
assertEquals("abc", getHeader(info, "test"));
assertNull(getHeader(info, Exchange.HTTP_QUERY));
}