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