PreferencesFile extends OwnedEntity { @Override public String toString() { return new ToStringBuilder(this) .appendSuper(super.toString()) .append("dataLength", StringUtils.length(data)) .toString(); } PreferencesFile();  PreferencesFile(String name, String data);  PreferencesFile(String userId, String name, String data);  PreferencesFile(PreferencesFile clone); String getData(); void setData(String data); @Override String toString();  }
@Test public void testToString() { toStringPrint(entity); }