CoreFormHandlingServlet extends SlingAllMethodsServlet implements Filter { public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException { formsHandlingServletHelper.handleFilter(request, response, chain, EXTENSION, SELECTOR); }  void doFilter(final ServletRequest request,
                         final ServletResponse response,
                         final FilterChain chain); void init(final FilterConfig config);  }
@Test public void testDoFilter() throws Exception { FilterChain filterChain = mock(FilterChain.class); servlet.doFilter(context.request(), context.response(), filterChain); verify(formsHandlingServletHelper).handleFilter(context.request(), context.response(), filterChain, EXTENSION, SELECTOR); }