DirectEventLogger { public void log(DirectEventType type, MimeMessage message) { log(type, message, null); } private  DirectEventLogger(); static DirectEventLogger getInstance(); void log(DirectEventType type, MimeMessage message); void logException(DirectEventType type, MimeMessage message, Exception exception); void log(DirectEventType type, MimeMessage message, String errorMsg); void log(DirectEventType type, String errorMsg);  }
@Test public void canLogSuccess() { testLogger.log(DirectEventType.BEGIN_OUTBOUND_DIRECT, mockMimeMessage); }
@Test public void canLogError() { testLogger.log(DirectEventType.DIRECT_ERROR, mockMimeMessage, ERROR_MESSAGE); }