@Test
public void testCreateNewException() {

  // declare the expected exception event
  final long currentMillis = java.lang.System.currentTimeMillis();
  final String expectedCause =
      "Exception thrown in application 'sampleApplication' by class 'boolean java.sql.Statement.execute(String)':\\n ...";
  final Event expectedEvent = new Event("4", currentMillis, EEventType.EXCEPTION, expectedCause);
  // test the method and verify
  this.l.createNewException("4", expectedCause);
  final Event actualEvent = this.l.getEvents().get(0);
  // the attributes must be equal
  assertEquals(expectedEvent.getEventType(), actualEvent.getEventType());
  assertEquals(expectedEvent.getEventMessage(), actualEvent.getEventMessage());
}