@Test
public void totalProjectsByYearTest() throws Exception {

    final List<Document> result = corruptionRiskDashboardIndicatorsStatsController
            .totalProjectsByYear(new YearFilterPagingRequest());
    Assert.assertEquals(2, result.size());
    Assert.assertEquals(2014, result.get(0).get(CorruptionRiskDashboardIndicatorsStatsController.Keys.YEAR));
    Assert.assertEquals(1, result.get(0).get(CorruptionRiskDashboardIndicatorsStatsController.Keys.PROJECT_COUNT));
    Assert.assertEquals(2015, result.get(1).get(CorruptionRiskDashboardIndicatorsStatsController.Keys.YEAR));
    Assert.assertEquals(2, result.get(1).get(CorruptionRiskDashboardIndicatorsStatsController.Keys.PROJECT_COUNT));
}