NamedEntity extends BaseEntity { @Override public String toString() { return new ToStringBuilder(this) .appendSuper(super.toString()) .append("name", name) .toString(); } NamedEntity();  NamedEntity(String name);  NamedEntity(NamedEntity clone); String getName(); void setName(String name); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testToString() { toStringPrint(entity); }