@Test
public void testGetUrlAndPath() {

    HttpRequestBuilder request = new HttpRequestBuilder();
    request.setUrl("http://foo");
    assertEquals("http://foo/", request.getUrlAndPath());
    request = new HttpRequestBuilder();
    request.setUrl("http://foo");
    request.addPath("bar");
    request.addPath("baz");
    assertEquals("http://foo/bar/baz", request.getUrlAndPath());      
}