@Test
    void verifyFrontChannel() throws Throwable {
        val input = new DefaultSingleLogoutMessageCreator();

        val exec = SingleLogoutExecutionRequest.builder()
            .ticketGrantingTicket(new MockTicketGrantingTicket("casuser"))
            .httpServletRequest(Optional.of(new MockHttpServletRequest()))
            .build();

        val request = mock(SingleLogoutRequestContext.class);
        when(request.getExecutionRequest()).thenReturn(exec);
        when(request.getTicketId()).thenReturn(UUID.randomUUID().toString());
        when(request.getLogoutType()).thenReturn(RegisteredServiceLogoutType.FRONT_CHANNEL);
        assertNotNull(input.create(request));
    }
This is {@link DefaultSingleLogoutMessageCreatorTests}.

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