@Test
public void thatStatsAreBuildForTwoProjectsOfDifferentLanguageAndSameSnapshotDate() {

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