@Test
    void verifyEmailWithLocalizedSubject() {
        val props = new EmailProperties();
        props.setText("Hello World");
        props.setSubject("#{my.subject}");
        props.setFrom("cas@example.org");
        val body = EmailMessageBodyBuilder.builder().properties(props).build().get();
        val emailRequest = EmailMessageRequest.builder().emailProperties(props)
            .principal(CoreAuthenticationTestUtils.getPrincipal())
            .to(List.of("sample@example.org")).body(body).build();
        assertTrue(communicationsManager.email(emailRequest).isSuccess());
    }
This is {@link DefaultCommunicationsManagerTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-notifications/src/test/java/org/apereo/cas/notifications/DefaultCommunicationsManagerTests.java