@Test
    void verifyNoMailAttr() {
        authenticationRiskEmailNotifier.setRegisteredService(CoreAuthenticationTestUtils.getRegisteredService());
        val principal = CoreAuthenticationTestUtils.getPrincipal(CollectionUtils.wrap("nothing", List.of("cas@example.org")));
        val authentication = CoreAuthenticationTestUtils.getAuthentication(principal);
        authenticationRiskEmailNotifier.setAuthentication(authentication);
        authenticationRiskEmailNotifier.setClientInfo(ClientInfoHolder.getClientInfo());
        authenticationRiskEmailNotifier.setAuthenticationRiskScore(AuthenticationRiskScore.highestRiskScore());
        assertDoesNotThrow(() -> authenticationRiskEmailNotifier.publish());
    }
This is {@link AuthenticationRiskEmailNotifierTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-electrofence/src/test/java/org/apereo/cas/impl/notify/AuthenticationRiskEmailNotifierTests.java