SimpleDirContextAuthenticationStrategy implements DirContextAuthenticationStrategy { public DirContext processContextAfterCreation(DirContext ctx, String userDn, String password) { return ctx; }  void setupEnvironment(Hashtable<String, Object> env, String userDn, String password); DirContext processContextAfterCreation(DirContext ctx, String userDn, String password);  }
@Test public void testProcessContextAfterCreation() { Hashtable env = new Hashtable(); tested.processContextAfterCreation(null, "cn=John Doe", "pw"); assertThat(env.isEmpty()).isTrue(); }