@Test
    void verifyEmpty() {
        val servicesManager = mock(ServicesManager.class);
        val service = new CasRegisteredService();
        service.setServiceId(UUID.randomUUID().toString());
        when(servicesManager.findServiceBy(any(Service.class))).thenReturn(service);

        val handler = new DefaultSingleLogoutServiceMessageHandler(new SimpleHttpClientFactoryBean().getObject(),
            new DefaultSingleLogoutMessageCreator(), servicesManager,
            new DefaultSingleLogoutServiceLogoutUrlBuilder(servicesManager, mock(UrlValidator.class)), false,
            new DefaultAuthenticationServiceSelectionPlan(new DefaultAuthenticationServiceSelectionStrategy()));
        assertTrue(handler.handle(CoreAuthenticationTestUtils.getWebApplicationService(),
            UUID.randomUUID().toString(), SingleLogoutExecutionRequest.builder().build()).isEmpty());
    }
This is {@link DefaultSingleLogoutServiceMessageHandlerTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-logout/src/test/java/org/apereo/cas/logout/DefaultSingleLogoutServiceMessageHandlerTests.java