@Test
    void verifyPasswordValidationService() throws Throwable {
        val c = new UsernamePasswordCredential("casuser", "password");
        val bean = new PasswordChangeRequest();
        bean.setUsername(c.getUsername());
        bean.setConfirmedPassword("Test1@1234".toCharArray());
        bean.setPassword("Test1@1234".toCharArray());
        val isValid = passwordValidationService.isValid(bean);
        assertTrue(isValid);
    }
This is {@link JsonResourcePasswordManagementServiceTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-pm/src/test/java/org/apereo/cas/pm/impl/JsonResourcePasswordManagementServiceTests.java