Workspace implements Serializable { public List<Project> getProjects() { if (projects == null) { projects = new ArrayList<Project>(projectMetadata.keySet()); } return projects; } 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 public void getProjects() { assertEquals(3, workspace.getProjectCount()); assertEquals(3, workspace.getProjects().size()); }