@Test
public void thatDuplicateProjectsAreFiltered() {

    Date snapshotDate = new Date();
    Project javaProject = new Project();
    javaProject.setName("Project 1");
    javaProject.setPrimaryLanguage(JAVA);
    javaProject.setSnapshotDate(snapshotDate);
    Project duplicateProject = new Project();
    duplicateProject.setName("Project 1");
    duplicateProject.setPrimaryLanguage(JAVA);
    duplicateProject.setSnapshotDate(snapshotDate);
    List<LanguageStats> listOfLanguageStats = LanguageStats.buildStats(Lists.newArrayList(javaProject, duplicateProject));
    assertThat(listOfLanguageStats.size(), is(1));
}