### Question:
MailStatus { public void setError(Exception exception) { this.errorSummary = ExceptionUtils.getRootCauseMessage(exception); this.errorDescription = ExceptionUtils.getStackTrace(exception); } MailStatus();  MailStatus(String batchId, ExtendedMimeMessage message, MailState state); String getMessageId(); void setMessageId(String messageId); String getState(); void setState(MailState state); void setState(String state); String getBatchId(); void setBatchId(String batchId); Date getDate(); void setDate(Date date); String getRecipients(); void setRecipients(String recipients); String getType(); void setType(String type); String getErrorSummary(); String getErrorDescription(); void setErrorSummary(String errorSummary); void setErrorDescription(String errorDescription); void setError(Exception exception); String getWiki(); void setWiki(String wiki); @Override String toString();  }### Answer:
@Test public void setError() { MailStatus status = new MailStatus(); status.setError(new Exception("outer", new Exception("inner"))); assertEquals("Exception: inner", status.getErrorSummary()); assertTrue(status.getErrorDescription().contains("outer")); assertTrue(status.getErrorDescription().contains("inner")); }