@Test
public void onlyHostTest() throws Exception {

    String baseURI = "http://localhost/rest";
    String requestURI = "http://localhost/rest/test";
    setupContextURIs(baseURI, requestURI);
    setupContextHeaders(null, "eclipse.org:8081");
    filter.filter(context);
    URI newBaseURI = new URI("http://eclipse.org:8081/rest");
    URI newRequestURI = new URI("http://eclipse.org:8081/rest/test");
    verify(context).setRequestUri(eq(newBaseURI), eq(newRequestURI));
}