@Test
public void testRewite04() throws Exception {

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