### Question:
Status { @Override public String toString() { StringBuilder txt = new StringBuilder("Status "); txt.append(this.severity.toString()).append(": "); txt.append((getMessage().length() == 0) ? "<no message>" : getMessage()); txt.append(" : "); txt.append((getException() == null) ? "<no error>" : getException()); return txt.toString(); } Status( Severity severity,
                   String message,
                   Throwable exception ); Throwable getException(); String getMessage(); Severity getSeverity(); boolean isError(); boolean isInfo(); boolean isOk(); boolean isUnknown(); boolean isWarning(); @Override String toString(); static final Status OK_STATUS; }### Answer:
@Test public void shouldBeAbleToPrintWithMessageAndNullException() { new Status(Severity.WARNING, "the message goes here", null).toString(); }
@Test public void shouldBeAbleToPrintWithMessageAndException() { new Status(Severity.WARNING, "the message goes here", new RuntimeException("exception message")).toString(); }
@Test public void shouldBeAbleToPrintWithNullMessageAndException() { new Status(Severity.WARNING, null, new RuntimeException("exception message")).toString(); }
@Test public void shouldBeAbleToPrintWithNullMessageAndNullException() { new Status(Severity.WARNING, null, null).toString(); }