SimpleAuthenticator implements Authenticator { @Override public SaslNegotiator newSaslNegotiator(final InetAddress remoteAddress) { return new PlainTextSaslAuthenticator(); }  @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 shouldCreateNewPlainTextSaslNegotiator() { final Authenticator.SaslNegotiator negotiator1 = authenticator.newSaslNegotiator(null); final Authenticator.SaslNegotiator negotiator2 = authenticator.newSaslNegotiator(null); assertNotEquals(negotiator1, negotiator2); assertNotEquals(negotiator2, negotiator1); }