@Test
    void verifyPasswordReset() throws Throwable {
        val credential = new UsernamePasswordCredential("changepassword", StringUtils.EMPTY);
        val bean = new PasswordChangeRequest();
        bean.setConfirmedPassword("P@ssw0rdMellon".toCharArray());
        bean.setPassword("P@ssw0rdMellon".toCharArray());
        bean.setUsername(credential.getUsername());
        assertTrue(passwordChangeService.change(bean));
    }
This is {@link ActiveDirectoryPasswordManagementServiceTests}.
Change password handling is different for Active Directory and this test exercises that AD specific code branch.

@author Hal Deadman
@since 6.1.0
support/cas-server-support-pm-ldap/src/test/java/org/apereo/cas/pm/ActiveDirectoryPasswordManagementServiceTests.java