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

        new PopulateMessageContextAction.Info("code1").setEventId("result").execute(context);
        context.getMessageContext().getMessagesByCriteria(message -> message.getSeverity() == Severity.INFO);

        new PopulateMessageContextAction.Warning("code1").setEventId("result").execute(context);
        context.getMessageContext().getMessagesByCriteria(message -> message.getSeverity() == Severity.WARNING);

        new PopulateMessageContextAction.Errors("code1").setEventId("result").execute(context);
        context.getMessageContext().getMessagesByCriteria(message -> message.getSeverity() == Severity.ERROR);
    }
This is {@link PopulateMessageContextActionTests}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core-webflow-api/src/test/java/org/apereo/cas/web/flow/actions/PopulateMessageContextActionTests.java