@Test
    void verifyAction() throws Throwable {
        val context = MockRequestContext.create();

        val exception = new PasswordExpiringWarningMessageDescriptor("About to expire", 10);
        val event = new Event(this, "success",
            new LocalAttributeMap<>(CasWebflowConstants.ATTRIBUTE_ID_AUTHENTICATION_WARNINGS, CollectionUtils.wrapList(exception)));
        context.setCurrentEvent(event);

        val action = new HandlePasswordExpirationWarningMessagesAction();
        action.execute(context);
        assertTrue(context.getFlowScope().get(HandlePasswordExpirationWarningMessagesAction.ATTRIBUTE_NAME_EXPIRATION_WARNING_FOUND, Boolean.class));
    }
This is {@link HandlePasswordExpirationWarningMessagesActionTests}.

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