@Test
public void onlySchemeTest() throws Exception {

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