@Test
    void verifyAction() throws Throwable {
        val context = MockRequestContext.create();
        val attributes = new LocalAttributeMap<Object>(CasWebflowConstants.TRANSITION_ID_ERROR, new FailedLoginException());
        attributes.put(Credential.class.getName(), RegisteredServiceTestUtils.getCredentialsWithSameUsernameAndPassword("casuser"));
        context.setCurrentEvent(new Event(this, "eventId", attributes));
        assertNull(initPasswordChangeAction.execute(context));
        assertNotNull(WebUtils.getPasswordPolicyPattern(context));
        assertNotNull(WebUtils.getCredential(context));
    }
This is {@link InitPasswordChangeActionTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-pm-webflow/src/test/java/org/apereo/cas/pm/web/flow/actions/InitPasswordChangeActionTests.java