@Test
public void testSubjectEventDefinedTemplate() {

    Map<String, Object> data = new HashMap<>();
    data.put("subject.template.location", this.getClass().getClassLoader().getResource("propertySubjectTemplate.vm").getPath());
    data.put("alertLevel", "SEVERE");
    data.put("alertAttribute", "TestAttribute");
    Event event = new Event("foo", data);
    String subject = formatter.formatSubject(null, event);
    Assert.assertEquals("Property defined TestAttribute with SEVERE", subject);
}