@Test
    void verifyFailsAction() {
        val snsClient = mock(SnsClient.class);
        when(snsClient.publish(any(PublishRequest.class))).thenThrow(new IllegalArgumentException());
        val properties = new AmazonSnsProperties();
        properties.setMaxPrice("100");
        properties.setSenderId("SenderId");
        val sender = new AmazonSimpleNotificationServiceSmsSender(snsClient, properties);
        assertFalse(sender.send("1234567890", "1234567890", "TestMessage"));
    }
This is {@link AmazonSimpleNotificationServiceSmsSenderTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-sms-aws-sns/src/test/java/org/apereo/cas/support/sms/AmazonSimpleNotificationServiceSmsSenderTests.java