public void testFormat() throws Exception {
Map m = new HashMap();
m.put(Log4jReportHandler.MESSAGE_FORMAT_KEY,
"First subst {A} for B then {B} for C and put the message {:MESSAGE} here event {:EVENT} and date {:TIMESTAMP}");
Log4jReportHandler h = new Log4jReportHandler(m, getClass().getName());
Map metrics = new HashMap();
metrics.put("A", "B");
metrics.put("B", "C");
metrics.put(":MESSAGE", "This message");
metrics.put(":EVENT", Event.STOP.toString());
metrics.put(":STATUS", Status.SUCCESS);
metrics.put(":TIMESTAMP", new Date());
h.report(metrics);
}