### Question:
DenialReason { @Override public String toString() { return "DenialReason{" + "id='" + id + '\'' + ", reason='" + reason + '\'' + ", fraud=" + fraud + '}'; } DenialReason(String id, String reason, boolean fraud); String getId(); String getReason(); boolean isFraud(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void toStringContainsClassName() { assertTrue(new DenialReason(null, null, true) .toString().contains(DenialReason.class.getSimpleName())); }