@Test(expected=ClientProtocolException.class)
public void testRejectRelativeRedirect() throws Exception {
final HttpHost target = getServerHttp();
this.localServer.register("*", new RelativeRedirectService());
final RequestConfig config = RequestConfig.custom().setRelativeRedirectsAllowed(false).build();
final HttpGet httpget = new HttpGet("/oldlocation/");
httpget.setConfig(config);
try {
this.httpclient.execute(target, httpget);
} catch (final ClientProtocolException e) {