when(request.getAttribute(UserAuthorizationProcessingFilter.CALLBACK_ATTRIBUTE)).thenReturn(
"http://my.hosting.com/my/context?with=some&query=parameter");
when(request.getAttribute(UserAuthorizationProcessingFilter.VERIFIER_ATTRIBUTE)).thenReturn("myvera");
when(request.getParameter("requestToken")).thenReturn("mytoka");
handler.onAuthenticationSuccess(request, response, null);
verify(redirectStrategy).sendRedirect(request, response,
"http://my.hosting.com/my/context?with=some&query=parameter&oauth_token=mytoka&oauth_verifier=myvera");
}
}