@Test
public void testOnAuthenticationSuccess_SetIllegalUrlWhenUseDefaultRedirectToRedirectStrategy() throws Exception {

    RedirectAuthenticationHandler redireHandler = new RedirectAuthenticationHandler();
    // redireHandler.afterPropertiesSet(); do not initialize
    // set Blank URI
    String redirectURI = "http://google.com";
    request.setParameter("redirectTo", redirectURI);
    // expected data
    String expectedRedirectURL = "http://google.com";
    // run
    redireHandler.onAuthenticationSuccess(request, response, auth);
    // assert
    assertThat(response.getRedirectedUrl(), is(expectedRedirectURL));
}