@Test
public void testHttpsDisabled()
{

    try {
        new AdminServerCredentialVerifier(ADMIN_SERVER_CONFIG, new HttpServerConfig().setHttpsEnabled(false))
                .authenticate(SECURITY_CONTEXT_ALLOW, null);
        fail("Expected WebApplicationException");
    }
    catch (WebApplicationException e) {
        assertEquals(e.getResponse().getStatus(), 403);
    }
}