@Test
public void testDateFormat() {

  String test = "%a";
  Event e = new EventImpl(new byte[0], 1267578391, Priority.INFO, 0,
      "localhost");
  test = e.escapeString(test);
  assertEquals("Replacement of tag by date failed: " + test, "Thu", test);
}