### Question:
BaseException extends Exception { @Override public String toString() { return getClass().getSimpleName() + "{" + "message='" + getMessage() + "'," + "cause='" + getCause() + "'," + "errorCode='" + getErrorCode() + "'," + "}"; } BaseException(String message, Throwable cause, String errorCode); String getErrorCode(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void toStringContainsClassName() throws Exception { assertTrue(new BaseException(MESSAGE, CAUSE, CODE).toString().contains(BaseException.class.getSimpleName())); }