@Test
public void loadTemplatesFromPropertiesTest() throws Exception {

    Alert openAlert = JvmGarbageCollectionData.getOpenAlert();
    Action openAction = new Action(openAlert.getTriggerId(), "email", "email-to-test", openAlert);
    openAction.setProperties(properties);
    ActionMessage openMessage = new TestActionMessage(openAction);
    properties.put("template.plain", "Tiny template: ${emailSubject}");
    EmailTemplate template = new EmailTemplate();
    Map<String, String> processed = template.processTemplate(openMessage);
    assertNotNull(processed.get("emailBodyPlain"));
    assertEquals("Processed template", processed.get("emailBodyPlain"), "Tiny template: Alert [open] message: GC " +
            "Duration greater than 1000.0 ms for App Server thevault~Local");
    properties.remove("template.plain");
}