@Test
public void testCreateModelBody() {

    JspFragment jspBody = createMock(JspFragment.class);
    JspContext jspContext = createMock(JspContext.class);
    JspTag parent = createMock(JspTag.class);
    JspWriter writer = createMock(JspWriter.class);
    expect(jspContext.getOut()).andReturn(writer);
    replay(jspBody, jspContext, parent, writer);
    JspAutotagRuntime runtime = new JspAutotagRuntime();
    runtime.setJspBody(jspBody);
    runtime.setJspContext(jspContext);
    runtime.setParent(parent);
    runtime.doTag();
    ModelBody jspModelBody = runtime.createModelBody();
    assertTrue(jspModelBody instanceof JspModelBody);
    verify(jspBody, jspContext, parent, writer);
}