@Test
    void verifyReuseOldPassword() throws Throwable {
        val request = new PasswordChangeRequest("casuser", "current-psw".toCharArray(), "123456".toCharArray(), "123456".toCharArray());
        assertFalse(passwordValidationService.isValid(request));
        request.setPassword("This!$P@$$".toCharArray());
        request.setConfirmedPassword("This!$P@$$".toCharArray());
        assertFalse(passwordValidationService.isValid(request));
    }
This is {@link DefaultPasswordValidationServiceTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-pm/src/test/java/org/apereo/cas/pm/DefaultPasswordValidationServiceTests.java