Workspace implements Serializable { public Hierarchy getHierarchy(Project project) { ProjectMetadata metadata = getMetadata(project); if (metadata == null) { return null; } return metadata.getHierarchy(); } 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 getHierarchy() { workspace.getHierarchy(null); }
@Test public void getHierarchy2() { assertNull(workspace.getHierarchy(new Project())); assertNotNull(workspace.getHierarchy(firstProject)); assertNull(workspace.getHierarchy(thirdProject)); }