public ActionResult apply(Agent agent, Map<String, String> input) {
        log.debug("Outputmessage action message={}", input.get("message"));

        String message = input.get("message");
        if (!StringUtils.hasText(message)) {
            message = "";
        }
        return ActionResult.builder()
                .status(ActionResult.Status.SUCCESS)
                .result("The message has been displayed to the user.")
                .output(message)
                .summary("")
                .build();
    }
@Test
    void testApply() {
        Map<String, String> input = new HashMap<>();
        String testMessage = "Test message";
        input.put("message", testMessage);

        ActionResult result = outputMessageAction.apply(mockAgent, input);

        assertEquals(ActionResult.Status.SUCCESS, result.getStatus());
        assertEquals("The message has been displayed to the user.", result.getResult());
        assertEquals(testMessage, result.getOutput());
        assertEquals("", result.getSummary());
    }