@Test
public void totalEligibleIndicatorsByIndicatorTypeTest() throws Exception {

    final List<Document> result = corruptionRiskDashboardIndicatorsStatsController
            .totalEligibleIndicatorsByIndicatorType(new YearFilterPagingRequest());
    Assert.assertEquals(3, result.size());
    Assert.assertEquals(FlagType.COLLUSION.toString(), result.get(0).get(CorruptionRiskDashboardIndicatorsStatsController
            .Keys.TYPE));
    Assert.assertEquals(2, result.get(0).get(CorruptionRiskDashboardIndicatorsStatsController.Keys
            .INDICATOR_COUNT));
    Assert.assertEquals(FlagType.FRAUD.toString(), result.get(1).get
            (CorruptionRiskDashboardIndicatorsStatsController
            .Keys.TYPE));
    Assert.assertEquals(3, result.get(1).get(CorruptionRiskDashboardIndicatorsStatsController.Keys
            .INDICATOR_COUNT));
    Assert.assertEquals(FlagType.RIGGING.toString(), result.get(2).get
            (CorruptionRiskDashboardIndicatorsStatsController
            .Keys.TYPE));
    Assert.assertEquals(7, result.get(2).get(CorruptionRiskDashboardIndicatorsStatsController.Keys
            .INDICATOR_COUNT));
}