HttpServletRequest request = mockHttpServletRequest();
HttpServletRequest decodedRequest = mockHttpServletRequest();
HttpServletResponse response = mockHttpServletResponse();
HttpServletRequestHandler handler = newMock(HttpServletRequestHandler.class);
MultipartServletRequestFilter filter = new MultipartServletRequestFilter(decoder);
expect(request.getMethod()).andReturn("post");
expect(request.getContentType()).andReturn("multipart/form");
expect(decoder.decode(request)).andReturn(decodedRequest);
expect(handler.service(decodedRequest, response)).andReturn(true);
replay();
boolean isHandled = filter.service(request, response, handler);
assertTrue(isHandled);
verify();
}