@Test(expected=HttpException.class)
public void testAuthScopeInvalidRequestURI() throws Exception {

    HttpRequest request = new BasicHttpRequest("GET", "crap:");
    HttpRoute route = new HttpRoute(this.target, null, false);
    HttpRoutedConnection conn = Mockito.mock(HttpRoutedConnection.class);
    Mockito.when(conn.getRoute()).thenReturn(route);
    Mockito.when(conn.isSecure()).thenReturn(Boolean.FALSE);
    HttpContext context = new BasicHttpContext();
    context.setAttribute(ExecutionContext.HTTP_TARGET_HOST, this.target);
    context.setAttribute(ExecutionContext.HTTP_CONNECTION, conn);
    context.setAttribute(ClientContext.COOKIE_STORE, this.cookieStore);
    context.setAttribute(ClientContext.COOKIESPEC_REGISTRY, this.cookieSpecRegistry);
    HttpRequestInterceptor interceptor = new RequestAddCookies();
    interceptor.process(request, context);
}