@Test
public void testWrongScheme()
{

    try {
        new AdminServerCredentialVerifier(ADMIN_SERVER_CONFIG, HTTP_SERVER_CONFIG)
                .authenticate(SECURITY_CONTEXT_DENY, "Digest " + Base64.getEncoder().encodeToString("foo:bar".getBytes(UTF_8)));
        fail("Expected WebApplicationException");
    }
    catch (WebApplicationException e) {
        assertEquals(e.getResponse().getStatus(), 401);
    }
}