@Test
public void httpHandleRedirect() throws Exception {
// force a 301 redirect
localServer.register("/test", new RedirectHandler(HttpStatus.SC_MOVED_PERMANENTLY));
localServer.register("/someplaceelse", new BasicValidationHandler("GET", null, null, "Bye World"));
String uri = "http4://" + getHostName() + ":" + getPort()
+ "/test?httpClient.socketTimeout=60000&httpClient.connectTimeout=60000"
+ "&httpClient.staleConnectionCheckEnabled=false";
Exchange out = template.request(uri, new Processor() {