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

    expect(response.isCommitted()).andReturn(false);
    expect(request.getRequestDispatcher("/my/path")).andReturn(null);
    replay(applicationContext, request, response);
    try {
        req.doForward("/my/path");
    } finally {
        verify(applicationContext, request, response);
    }
}