@Test
public void testAuthenticateNoAuthorizationHeader() throws Exception {

    Headers respHeader = new Headers();
    HttpExchange ex = createHttpExchange(respHeader);
    Authenticator.Result res = auth.authenticate(ex);
    assertEquals(((Authenticator.Retry) res).getResponseCode(),401);
    assertTrue(respHeader.containsKey("WWW-Authenticate"));
    assertTrue(respHeader.getFirst("WWW-Authenticate").contains("jolokia"));
}