@Test
        void verifyHandlerMustChangePassword() throws Throwable {
            val user = MAPPER.createObjectNode();
            user.put("username", "casuser");
            user.put("mustChangePassword", true);
            try (val webserver = startMockSever(user, HttpStatus.OK, 8096)) {
                val syncopeAuthenticationHandler = syncopeAuthenticationHandlers.first();
                assertThrows(AccountPasswordMustChangeException.class,
                    () -> syncopeAuthenticationHandler.authenticate(CREDENTIAL, mock(Service.class)));
            }
        }
This is {@link SyncopeAuthenticationHandlerTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-syncope-authentication/src/test/java/org/apereo/cas/syncope/authentication/SyncopeAuthenticationHandlerTests.java