@Test
    void verifyMailSender() throws Throwable {
        assertTrue(communicationsManager.isPhoneOperatorDefined());
        var callRequest = PhoneCallRequest.builder().to("+1234567890").from("+1234567890").text("Hello!").build();
        assertTrue(communicationsManager.phoneCall(callRequest));

        val principal = mock(Principal.class);
        when(principal.getId()).thenReturn("casuser");
        when(principal.getAttributes()).thenReturn(CollectionUtils.wrap("phone", List.of("+1234567890")));
        callRequest = PhoneCallRequest.builder().from("+1234567890").text("Hello!").principal(principal).attribute("phone").build();
        assertTrue(communicationsManager.phoneCall(callRequest));

        callRequest = PhoneCallRequest.builder().from("+1234567890").build();
        assertFalse(communicationsManager.phoneCall(callRequest));
    }
This is {@link PhoneCallOperatorTests}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core-notifications/src/test/java/org/apereo/cas/notifications/call/PhoneCallOperatorTests.java