@Test
    void verifyUserPasswordChange() throws Throwable {
        val c = new UsernamePasswordCredential("casuser", "password");
        val bean = new PasswordChangeRequest();
        bean.setConfirmedPassword("newPassword1".toCharArray());
        bean.setUsername(c.getUsername());
        bean.setPassword("newPassword1".toCharArray());
        assertTrue(passwordChangeService.change(bean));
        assertFalse(passwordHistoryService.fetch(c.getUsername()).isEmpty());
        assertFalse(passwordChangeService.change(bean));
    }
This is {@link JdbcPasswordManagementServiceTests}.

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