@Test
    public void testRenew() {
        val configuration = new CasConfiguration();
        configuration.setLoginUrl(LOGIN_URL);
        val casClient = new CasClient(configuration);
        casClient.setCallbackUrl(CALLBACK_URL);
        configuration.setRenew(true);
        val context = MockWebContext.create();
        WithLocationAction action = (FoundAction) casClient.getRedirectionAction(new CallContext(context, new MockSessionStore())).get();
        assertTrue(action.getLocation().indexOf("renew=true") >= 0);
    }
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