@Test
public void noAuth() {

    DelegatingAuthenticator authenticator = new DelegatingAuthenticator("jolokia",url,"json:metadata/name",false);
    Headers respHeader = new Headers();
    HttpExchange ex = createHttpExchange(respHeader);
    Authenticator.Result result = authenticator.authenticate(ex);
    assertNotNull(result);
    assertTrue(result instanceof Authenticator.Failure);
    assertEquals(((Authenticator.Failure) result).getResponseCode(), 401);
}