ProjectMetadata implements Serializable { public Project getProject() { return EntityUtils.lightweightClone(hierarchy.getProject()); } @SuppressWarnings("unchecked")  ProjectMetadata(Project project);  ProjectMetadata(Hierarchy hierarchy, Set<File> files); Project getProject(); Set<File> getFiles(); Hierarchy getHierarchy(); void setHierarchy(Hierarchy hierarchy); void addFile(File file); void removeFile(File file); @Override String toString();  }
@Test public void getProject() { Project project = metadata.getProject(); project.setName("new_name"); assertFalse(project.equals(metadata.getProject())); }