assertExchange(exchange);
}
@Test
public void httpPost() throws Exception {
localServer.register("/", new BasicValidationHandler("POST", null, null, getExpectedContent()));
Exchange exchange = template.request("http4://" + getHostName() + ":" + getPort() + "/", new Processor() {
public void process(Exchange exchange) throws Exception {
exchange.getIn().setHeader(Exchange.HTTP_METHOD, "POST");
}