BaseEntity implements Serializable { @Override public String toString() { return new ToStringBuilder(this) .append("id", id) .append("version", version) .toString(); } BaseEntity();  BaseEntity(BaseEntity clone); boolean isNew(); Integer getId(); void setId(Integer id); Integer getVersion(); void setVersion(Integer version); @Override String toString();  }
@Test public void testToString() { toStringPrint(entity); }