### Question:
Nonce { @Override public String toString() { return getClass().getName() + "@" + Integer.toHexString(super.hashCode()); } Nonce(final byte[] nonceBytes); byte[] getNonceBytes(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void toStringDoesNotUseUnderlyingData() { final Nonce nonce = new Nonce(new byte[] {5, 6, 7}); final Nonce nonce2 = new Nonce(new byte[] {5, 6, 7}); assertThat(nonce.toString()).isNotEqualTo(nonce2.toString()); }