@Test
public void noAuth() throws IOException {

    expect(request.getHeader("Authorization")).andReturn(null);
    expect(request.getHeader(AuthorizationHeaderParser.JOLOKIA_ALTERNATE_AUTHORIZATION_HEADER)).andReturn(null);
    response.setHeader(eq("WWW-Authenticate"), EasyMock.<String>anyObject());
    response.sendError(HttpServletResponse.SC_UNAUTHORIZED);
    replay(request, response);
    assertFalse(context.handleSecurity(request, response));
}