@Test
public void testEvaluateWriter() throws TemplateException, IOException {

    TemplateDirectiveBody body = createMock(TemplateDirectiveBody.class);
    Writer writer = createMock(Writer.class);
    body.render(writer);
    replay(body, writer);
    FreemarkerModelBody modelBody = new FreemarkerModelBody(null, body);
    modelBody.evaluate(writer);
    verify(body, writer);
}