@Test
public void testEvaluateWriterNull() throws JspException, IOException {

    PageContext pageContext = createMock(PageContext.class);
    Writer writer = createMock(Writer.class);
    expect(pageContext.getOut()).andReturn(null);
    replay(writer, pageContext);
    JspModelBody modelBody = new JspModelBody(null, pageContext);
    modelBody.evaluate(writer);
    verify(writer, pageContext);
}