@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);
}