@Test
public void invalidHeaderTest() throws Exception {

    String baseURI = "http://localhost:8080/rest";
    String requestURI = "http://localhost:8080/rest/test";
    setupContextURIs(baseURI, requestURI);
    setupContextHeaders("https", "://sometext\\\\///");
    filter.filter(context);
    verify(context, never()).setRequestUri(any(URI.class), any(URI.class));
}