MessageDigestErrorEntry extends MessageDigestEntry { @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("date", getDate()).append("unique-id", getUniqueId()) .append("workflow-id", getWorkflowId()).append("fsLocation", getFileSystemPath()).append("stacktrace", getStackTrace()) .toString(); } MessageDigestErrorEntry();  MessageDigestErrorEntry(String uniqueId, String workflowId);  MessageDigestErrorEntry(String uniqueId, String workflowId, Date date); @Override String toString(); void setStackTrace(String st); void setStackTrace(Exception e); String getStackTrace(); String getFileSystemPath(); void setFileSystemPath(String s); void setFileSystemFile(File f); MessageLifecycleEvent getLifecycleEvent(); void setLifecycleEvent(MessageLifecycleEvent event); void extractInfo(AdaptrisMessage msg);  }
@Test public void testToString() throws Exception { Exception e = new Exception(); MessageDigestErrorEntry entry = new MessageDigestErrorEntry("123", "234"); assertNotNull(entry.toString()); entry = new MessageDigestErrorEntry("123", "234", new Date()); assertNotNull(entry.toString()); }