@Test
public void testRewite05() throws Exception {

    URI uri = URI.create("http://thishost/stuff#crap");
    HttpHost target = new HttpHost("thathost", -1);
    Assert.assertEquals("http://thathost/stuff#crap", URIUtils.rewriteURI(uri, target, false).toString());
}