    @Test(expected = CredentialInvalidException.class)
    public void testBasicAuthFailUrl() throws JSONException, IOException, CredentialInvalidException {

        stubBasicAuth();
        Executor exec = newExecutor();

        LoginHandler handler = new LoginHandler(dataBasicUrl, wrong, null);
        handler.handleLogin(exec, null);
    }