@ConditionalOnMissingBean(name = SmsSender.BEAN_NAME)
        @Bean
        public SmsSender smsSender() {
            return MockSmsSender.INSTANCE;
        }
This is {@link RegisteredServicesEventListenerTests}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/RegisteredServicesEventListenerTests.java