@Test
public void testUploadProjectFile() throws Exception {

  createThreeProjects();
  final Project project = this.loader.fetchProjectByName("mytestProject");
  final File testFile = new File(getClass().getClassLoader().getResource(SAMPLE_FILE).getFile());
  final int newVersion = this.loader.getLatestProjectVersion(project) + 1;
  this.loader.uploadProjectFile(project.getId(), newVersion, testFile, "uploadUser1",
      IPv4);
  final ProjectFileHandler fileHandler = this.loader.getUploadedFile(project.getId(), newVersion);
  Assert.assertEquals(fileHandler.getFileName(), SAMPLE_FILE);
  Assert.assertEquals(fileHandler.getUploader(), "uploadUser1");
}