AbstractViewRequest extends DispatchRequestWrapper { protected void doInclude(String path) throws IOException { getWrappedRequest().include(path); } AbstractViewRequest(DispatchRequest request); @Override void dispatch(String path); @Override void include(String path);  }
@Test public void testDoInclude() throws IOException { wrappedRequest.include("/my/path.html"); replay(wrappedRequest, request, applicationContext); request.doInclude("/my/path.html"); verify(wrappedRequest, request, applicationContext); }