Workspace implements Serializable { public void removeProject(Project project) { Validate.notNull(project, "Project can't be null"); projectMetadata.remove(project); if (projects != null) { projects.remove(project); } } 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 removeProject() { workspace.removeProject(null); }