### Question:
ConfidentialString { @Override public String toString() { return "** CONFIDENTIAL **"; } ConfidentialString(final String string); String getString(); @Override String toString(); @Override int hashCode(); @Override boolean equals(final Object obj);  }### Answer:
@Test public void shouldNotContainStringContents_onToString() { final String string = randomString(); final ConfidentialString s = new ConfidentialString(string); final String toString = s.toString(); assertFalse(toString.contains(string)); }