@Test
public void testBaseIsCorrectlySetWhenResolving() {

    final String path = "/some/relative/path?foo=bar&baz=blub#fragment";
    final String uri = "http://other.host.org" + path;
    assertThat(client.resolveAgainstBase(uri).toString()).isEqualTo(BASE_REST_URI + path);
}