@Test
    void verifyLocalizedFileFound() {
        val props = new EmailProperties().setText("classpath:/EmailTemplate.html");
        val results = EmailMessageBodyBuilder.builder()
            .properties(props)
            .locale(Optional.of(Locale.GERMAN))
            .parameters(CollectionUtils.wrap("firstname", "Bob"))
            .build();
        val result = results.get();
        assertNotNull(result);
        assertTrue(result.contains("Hallo Bob! Dies ist eine E-Mail-Nachricht"));
    }
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