@Test
public void testAddProjectVersion() 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.addProjectVersion(project.getId(), newVersion, testFile, null,
      "uploadUser1", computeHash(testFile), "resourceId1", IPv6);
  final int currVersion = this.loader.getLatestProjectVersion(project);
  Assert.assertEquals(currVersion, newVersion);
}