SimpleAuthenticator implements Authenticator { @Override public boolean requireAuthentication() { return true; }  @Override boolean requireAuthentication(); @Override void setup(final Map<String,Object> config); @Override SaslNegotiator newSaslNegotiator(final InetAddress remoteAddress); AuthenticatedUser authenticate(final Map<String, String> credentials); static final String CONFIG_CREDENTIALS_DB; }
@Test public void shouldAlwaysRequireAuthentication() { assertTrue(authenticator.requireAuthentication()); }