Workspace implements Serializable { public Set<File> getFiles(Project project) { ProjectMetadata metadata = getMetadata(project); if (metadata == null) { return null; } return metadata.getFiles(); } Workspace(Map<Project, ProjectMetadata> projectMetadata,
            Set<File> predefinedFiles, List<PreferencesFile> preferencesFiles); int getProjectCount(); List<Project> getProjects(); void addProject(Project project); void removeProject(Project project); void addFile(File file, Hierarchy hierarchy); void removeFile(File file, Hierarchy hierarchy); Hierarchy getHierarchy(Project project); Set<File> getFiles(Project project); Set<File> getPredefinedFiles(); List<PreferencesFile> getPreferencesFiles(); @Override String toString();  }
@Test(expected = IllegalArgumentException.class) public void getFiles() { workspace.getFiles(null); }
@Test public void getFiles2() { assertNull(workspace.getFiles(new Project())); assertNotNull(workspace.getFiles(firstProject)); assertNull(workspace.getFiles(thirdProject)); }