@Test
public void testProcessChallenge() throws Exception {

    TestAuthScheme authscheme = new TestAuthScheme();
    Header header = new BasicHeader(
            AUTH.WWW_AUTH,
            "Test realm=\"realm1\", test, test1 =  stuff, test2 =  \"stuff, stuff\", test3=\"crap");
    authscheme.processChallenge(header);
    Assert.assertEquals("test", authscheme.getSchemeName());
    Assert.assertEquals("realm1", authscheme.getParameter("realm"));
    Assert.assertEquals(null, authscheme.getParameter("test"));
    Assert.assertEquals("stuff", authscheme.getParameter("test1"));
    Assert.assertEquals("stuff, stuff", authscheme.getParameter("test2"));
    Assert.assertEquals("\"crap", authscheme.getParameter("test3"));
}