@Test
public void testWrite() throws IOException {

    DispatchRequest requestContext = createMock(DispatchRequest.class);
    requestContext.dispatch("/myTemplate.jsp");
    replay(requestContext);
    renderer.render("/myTemplate.jsp", requestContext);
    verify(requestContext);
}