CoreFormHandlingServlet extends SlingAllMethodsServlet implements Filter { @Override protected void doPost(@NotNull SlingHttpServletRequest request, @NotNull final SlingHttpServletResponse response) throws ServletException, IOException { formsHandlingServletHelper.doPost(request, response); }  void doFilter(final ServletRequest request,
                         final ServletResponse response,
                         final FilterChain chain); void init(final FilterConfig config);  }
@Test public void testDoPost() throws Exception { servlet.doPost(context.request(), context.response()); verify(formsHandlingServletHelper).doPost(context.request(), context.response()); }