DispatchRequestWrapper extends AbstractRequest implements
        RequestWrapper { public void dispatch(String path) throws IOException { context.dispatch(path); } DispatchRequestWrapper(DispatchRequest context); DispatchRequest getWrappedRequest(); Map<String, String> getHeader(); Map<String, String[]> getHeaderValues(); Addable<String> getResponseHeaders(); Map<String, Object> getContext(String scope); List<String> getAvailableScopes(); ApplicationContext getApplicationContext(); void dispatch(String path); void include(String path); OutputStream getOutputStream(); Writer getWriter(); PrintWriter getPrintWriter(); boolean isResponseCommitted(); void setContentType(String contentType); Map<String, String> getParam(); Map<String, String[]> getParamValues(); Locale getRequestLocale(); boolean isUserInRole(String role);  }
@Test public void testDispatch() throws IOException { DispatchRequest wrappedRequest = createMockRequest(); wrappedRequest.dispatch("/my/path.html"); replay(wrappedRequest); DispatchRequestWrapper request = createRequestWrapper(wrappedRequest); request.dispatch("/my/path.html"); verify(wrappedRequest); }