@Test
public void changeAsUserPassword() throws Exception {

    doNothing().when(authManagerLdapTemplate).modifyAttributes(any(DirContext.class), eq(user), any(ModificationItem[].class));
    sut.changePassword(user, NEW_PASSWORD);
    verify(authManagerLdapTemplate).changePassword(user, NEW_PASSWORD);
    verify(authManagerLdapTemplate).getTemplate(user);
    verify(authManagerLdapTemplate).getCallback(user, NEW_PASSWORD);
    verify(authManagerLdapTemplate).changeLdapUserPassword(any(DirContext.class), eq(NEW_PASSWORD), eq(user));
}