@Test public void testHttpLocationWithAbsoluteFragment() throws Exception {
final HttpHost target=new HttpHost("localhost",80,"http");
final URI requestURI=new URIBuilder().setHost(target.getHostName()).setScheme(target.getSchemeName()).setPath("/stuff").setFragment("blahblah").build();
final URI location=URIUtils.resolve(requestURI,target,null);
final URI expectedURI=requestURI;
Assert.assertEquals(expectedURI,location);
}