@Test
    public void testFrontLogout() {
        val configuration = new CasConfiguration();
        configuration.setLoginUrl(LOGIN_URL);
        val casClient = new CasClient(configuration);
        casClient.setCallbackUrl(CALLBACK_URL);
        casClient.init();
        val context = MockWebContext.create()
                .addRequestParameter(CasConfiguration.LOGOUT_REQUEST_PARAMETER, deflateAndBase64(LOGOUT_MESSAGE))
                .setRequestMethod(HTTP_METHOD.GET.name());
        val ctx = new CallContext(context, new MockSessionStore());
        val credentials = casClient.getCredentials(ctx);
        val action = casClient.processLogout(ctx, credentials.get());
        assertEquals(200, action.getCode());
        assertEquals(Pac4jConstants.EMPTY_STRING, ((WithContentAction) action).getContent());
    }
This class tests the {@link CasClient} class.

@author Jerome Leleu
@since 1.4.0
pac4j-cas/src/test/java/org/pac4j/cas/client/CasClientTests.java