@Test
    void verifyUserPasswordChange() throws Throwable {
        val bean = new PasswordChangeRequest();
        bean.setUsername("casuser");
        bean.setConfirmedPassword("newPassword".toCharArray());
        bean.setPassword("newPassword".toCharArray());
        val res = passwordChangeService.change(bean);
        assertTrue(res);
    }
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