@Test
public void totalEligibleIndicatorsByIndicatorTypeByYearTest() throws Exception {

    final List<Document> result = corruptionRiskDashboardIndicatorsStatsController
            .totalEligibleIndicatorsByIndicatorTypeByYear(new YearFilterPagingRequest());
    Assert.assertEquals(6, result.size());
    Assert.assertEquals(FlagType.COLLUSION.toString(), result.get(0).get(CorruptionRiskDashboardIndicatorsStatsController
            .Keys.TYPE));
    Assert.assertEquals(2014, result.get(0).get(CorruptionRiskDashboardIndicatorsStatsController.Keys.YEAR));
    Assert.assertEquals(1, result.get(0).get(CorruptionRiskDashboardIndicatorsStatsController.Keys
            .INDICATOR_COUNT));
    Assert.assertEquals(FlagType.FRAUD.toString(), result.get(1).get(CorruptionRiskDashboardIndicatorsStatsController
            .Keys.TYPE));
    Assert.assertEquals(2014, result.get(1).get(CorruptionRiskDashboardIndicatorsStatsController.Keys.YEAR));
    Assert.assertEquals(1, result.get(1).get(CorruptionRiskDashboardIndicatorsStatsController.Keys.INDICATOR_COUNT));
}