File extends FileInfo { @Override public String toString() { Project p = getProject(); Integer pId = null; String pUserId = null; String pName = null; if (p != null) { pId = p.getId(); pUserId = p.getUserId(); pName = p.getName(); } return new ToStringBuilder(this) .appendSuper(super.toString()) .append("projectId", pId) .append("projectUserId", pUserId) .append("projectName", pName) .toString(); } File();  File(String name, FileType type, String data);  File(File clone);  File(File clone, boolean setProjectReference);  File(File clone, Project project); @NameFormatConstraint @Override String getName(); Project getProject(); void setProject(Project project); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testToString() { toStringPrint(entity); }