### Question:
Project { public ProjectType getProjectType() { ProjectType type; synchronized (projectFiles) { List<String> files = new ArrayList<String>(projectFiles); type = ProjectType.findProjectType(files); } return type; } Project(Exercise exercise);  Project(Exercise exercise, List<String> projectFiles); Exercise getExercise(); void setExercise(Exercise exercise); String getRootPath(); ProjectType getProjectType(); boolean containsFile(String file); @Override boolean equals(Object o); @Override int hashCode(); ZippingDecider getZippingDecider(); void setProjectFiles(List<String> files); List<String> getReadOnlyProjectFiles(); String getProjectFileByName(String fileName); void addProjectFile(String file); void removeProjectFile(String path); void setExtraStudentFiles(List<String> files); List<String> getExtraStudentFiles(); boolean existsOnDisk(); ProjectStatus getStatus(); void setStatus(ProjectStatus status);  }### Answer:
@Test public void isAntProject() { projectFiles.add("asdasd.xml"); projectFiles.add("ssdsaddMakefilesadas"); projectFiles.add("build.xml"); assertEquals(ProjectType.JAVA_ANT, project.getProjectType()); }
@Test public void isMavenProject() { projectFiles.add("asdasd.xml"); projectFiles.add("build.xmlxcvx"); projectFiles.add("pom.xml"); assertEquals(ProjectType.JAVA_MAVEN, project.getProjectType()); }
@Test public void isCProject() { projectFiles.add("Makefile"); projectFiles.add("asdasd.xml"); projectFiles.add("pomm.xml"); assertEquals(ProjectType.MAKEFILE, project.getProjectType()); }
@Test public void IsNotAProject() { projectFiles.add("asdasd.xml"); projectFiles.add("pomm.xml"); projectFiles.add("build.txt"); assertEquals(ProjectType.NONE, project.getProjectType()); }