File extends FileInfo { public Project getProject() { return project; } 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 copyConstructorFileBoolean() { File another = new File(entity, false); assertNull("project not null.", another.getProject()); another = new File(entity, true); assertTrue(entity.getProject() == another.getProject()); }
@Test public void copyConstructorFileProject() { Project project = new Project("userId", "project_name"); File another = new File(entity, project); assertTrue(project == another.getProject()); another = new File(entity, null); assertNull(another.getProject()); }