public void testDoForwardInclude() throws PortletException, IOException {
PortletRequestDispatcher rd = createMock(PortletRequestDispatcher.class);
expect(responseDelegate.isResponseCommitted()).andReturn(true);
expect(portletContext.getRequestDispatcher("/my/path")).andReturn(rd);
rd.include(request, response);
replay(applicationContext, request, response, rd, portletContext, requestDelegate, responseDelegate);
req.doForward("/my/path");
verify(applicationContext, request, response, rd, portletContext, requestDelegate, responseDelegate);
}