@Test
public void testDoForward() throws PortletException, IOException {

    PortletRequestDispatcher rd = createMock(PortletRequestDispatcher.class);
    expect(responseDelegate.isResponseCommitted()).andReturn(false);
    expect(portletContext.getRequestDispatcher("/my/path")).andReturn(rd);
    rd.forward(request, response);
    replay(applicationContext, portletContext, request, response, rd);
    req.doForward("/my/path");
    verify(applicationContext, portletContext, request, response, rd);
}