AuthenticationManagerLdapImpl extends AuthenticationManager { public boolean checkPassword(User user, String password) { return password.equalsIgnoreCase(user.getLdapPassword()); } AuthenticationManagerLdapImpl(ConfigurationUtil cfg, IUserRolesService userRolesService,
            AuthenticationManagerLdapTemplate authenticationManagerLdapTemplate); static AuthenticationManager getDefault(); boolean checkPassword(User user, String password); String resetPassword(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4); String resetPasswordExternal(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4); void changePassword(final User user, final String password);  }
@Test public void givenIncorrectPasswordChecksPassword() throws Exception { assertThat(sut.checkPassword(user, "incorrect-password"), is(Boolean.FALSE)); }
@Test public void givenCorrectPasswordChecksPassword() throws Exception { assertThat(sut.checkPassword(user, PASSWORD), is(Boolean.TRUE)); }