@Test(expected = IOException.class)
public void testDoIncludeNoDispatcher() throws IOException {

    expect(portletContext.getRequestDispatcher("/my/path")).andReturn(null);
    replay(applicationContext, request, response, portletContext, requestDelegate, responseDelegate);
    try {
        req.doInclude("/my/path");
    } finally {
        verify(applicationContext, request, response, portletContext, requestDelegate, responseDelegate);
    }
}