@Test
public void testBodyExternalTemplate() {

    String body = formatter.formatBody(this.getClass().getClassLoader().getResource("bodyTemplate.vm").getPath(), createEvent());
    Assert.assertTrue(body.contains("<html>"));
    Assert.assertTrue(body.contains("<b>Hello bar !</b>"));
    Assert.assertTrue(body.contains("<td>other</td>"));
    Assert.assertTrue(body.contains("<td>test</td>"));
    Assert.assertTrue(body.contains("<td>event.topics</td>"));
    Assert.assertTrue(body.contains("<td>foo</td>"));
}