verify(dispatcher, request, response, filterChain);
}
@Test
public final void doFilterRedirects() throws IOException, ServletException {
RoutingDispatcher dispatcher = createMock(RoutingDispatcher.class);
HttpServletRequest request = createNiceMock(HttpServletRequest.class);
HttpServletResponse response = createMock(HttpServletResponse.class);
FilterChain filterChain = createMock(FilterChain.class);
Respond respond = createMock(Respond.class);
//meaning no dispatch could be performed...
expect(dispatcher.dispatch(request, response))
.andReturn(respond);
expect(respond.getRedirect())
.andReturn(A_REDIRECT_LOCATION);