@Test
    void verifyTemplateOperation() {
        val props = new EmailProperties().setText("classpath:/GroovyEmailTemplate.gtemplate");

        val results = EmailMessageBodyBuilder.builder()
            .properties(props)
            .locale(Optional.of(Locale.GERMAN))
            .parameters(CollectionUtils.wrap("firstname", "Bob",
                "lastname", "Smith", "accepted", true,
                "title", "Advanced Title"))
            .build();
        val result = results.get();
        assertNotNull(result);
        assertTrue(result.startsWith("Dear Bob Smith,"));
    }
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