ErrorDetail implements Serializable { @Override public String toString() { return status + " " + request + " (\"" + message + "\")"; } ErrorDetail(HttpServletRequest request, HttpStatus status, Throwable cause);  ErrorDetail(URI requestURI, HttpStatus status, String text); @JsonSerialize(using = LocalDateTimeSerializer.class) @JsonDeserialize(using = LocalDateTimeDeserializer.class) LocalDateTime getWhen(); URI getRequest(); HttpStatus getStatus(); String getMessage(); @Override String toString();  }
@Test public void testToString() { String s = errorDetail.toString(); assertThat("looks like default implementation", s, not(containsString("@"))); LOG.info("s = \"{}\"", s); }