@Test
        void verifyEmailSentPerTenant() throws Throwable {
            val emailRequest = EmailMessageRequest
                .builder()
                .context(CollectionUtils.wrap("name", "casuser"))
                .emailProperties(new EmailProperties().setSubject("Hello ${name}").setFrom("cas@example.org"))
                .tenant("shire")
                .body("This is my body!")
                .to(List.of("casuser@example.org"))
                .build();
            assertTrue(emailSender.send(emailRequest).isSuccess());
        }
This is {@link DefaultEmailSenderTests}.

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