assertSame(res, chain.getResponse());
}
/** Test no logging if request is not HttpServletRequest. */
public void testNotHttpServletRequest() throws Exception {
ServletRequest request = new ServletRequestWrapper(req);
ServletResponse response = new ServletResponseWrapper(res);
logger.setLevel(Level.FINEST);
filter.doFilter(request, response, chain);
assertEquals("", handler.toString());
assertSame(request, chain.getRequest());