FileInfo extends NamedEntity { @Override public String toString() { return new ToStringBuilder(this) .appendSuper(super.toString()) .append("type", type) .append("dataLength", StringUtils.length(data)) .toString(); } FileInfo();  FileInfo(String name, FileType type, String data);  FileInfo(FileInfo clone); FileType getType(); void setType(FileType type); String getData(); void setData(String data); @Override String toString();  }
@Test public void testToString() { toStringPrint(entity); }