@Test
    void verifyGroovyOperation() {
        val props = new EmailProperties().setText("classpath:/GroovyMessageBody.groovy");
        val results = EmailMessageBodyBuilder.builder()
            .properties(props)
            .locale(Optional.of(Locale.CANADA))
            .parameters(CollectionUtils.wrap("key", "Hello"))
            .build()
            .addParameter("key2", "World");
        val result = results.get();
        assertEquals("Hello, World", result);
    }
This is {@link EmailMessageBodyBuilderTests}.

@author Misagh Moayyed
@since 6.4.0
core/cas-server-core-notifications/src/test/java/org/apereo/cas/notifications/mail/EmailMessageBodyBuilderTests.java