BasicScheme extends RFC2617Scheme { @Override public void processChallenge( final Header header) throws MalformedChallengeException { super.processChallenge(header); this.complete = true; } BasicScheme(); String getSchemeName(); @Override void processChallenge(
            final Header header); boolean isComplete(); boolean isConnectionBased(); Header authenticate(
            final Credentials credentials,
            final HttpRequest request); static Header authenticate(
            final Credentials credentials,
            final String charset,
            boolean proxy);  }
@Test(expected=MalformedChallengeException.class) public void testBasicAuthenticationWithNoRealm() throws Exception { String challenge = "Basic"; Header header = new BasicHeader(AUTH.WWW_AUTH, challenge); AuthScheme authscheme = new BasicScheme(); authscheme.processChallenge(header); }