@Test
    void verifyServiceExpirationEventWithContact() {
        val registeredService = RegisteredServiceTestUtils.getRegisteredService();
        val contact = new DefaultRegisteredServiceContact();
        contact.setName("Test");
        contact.setEmail("casuser@example.org");
        contact.setPhone("13477465421");
        registeredService.getContacts().add(contact);
        val event = new CasRegisteredServiceExpiredEvent(this, registeredService, false, clientInfo);
        assertDoesNotThrow(() -> registeredServicesEventListener.handleRegisteredServiceExpiredEvent(event));
    }
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