PasswordAuthenticator implements IAuthenticator { @Override public Response delegate(final Authenticator configuration, final URI callback) { return null; } @Inject  PasswordAuthenticator(final Session session); @Override Response delegate(final Authenticator configuration,
                             final URI callback); @Override UserIdentity authenticate(final Authenticator authenticator,
                                     final MultivaluedMap<String, String>
                                             parameters,
                                     final URI callback);  }
@Test public void testDelegate() throws Exception { IAuthenticator a = new PasswordAuthenticator(getSession()); Authenticator config = new Authenticator(); URI callback = UriBuilder.fromPath("http: Response r = a.delegate(config, callback); assertNull(r); }