@Test
public void costEffectivenessTenderAwardAmount() throws Exception {

    final ArrayList<Document> costEffectivenessTenderAwardAmount = costEffectivenessVisualsController
            .costEffectivenessTenderAwardAmount(new GroupingFilterPagingRequest());
    final Document first = costEffectivenessTenderAwardAmount.get(0);
    int year = (int) first.get(CostEffectivenessVisualsController.Keys.YEAR);
    BigDecimal diffTenderAwardAmount = (BigDecimal) first
            .get(CostEffectivenessVisualsController.Keys.DIFF_TENDER_AWARD_AMOUNT);
    Assert.assertEquals(-5400000, diffTenderAwardAmount.doubleValue(), 0);
    Assert.assertEquals(2014, year);
    final Document second = costEffectivenessTenderAwardAmount.get(1);
    year = (int) second.get(CostEffectivenessVisualsController.Keys.YEAR);
    diffTenderAwardAmount = (BigDecimal) second
            .get(CostEffectivenessVisualsController.Keys.DIFF_TENDER_AWARD_AMOUNT);
    Assert.assertEquals(2015, year);
    Assert.assertEquals(-31000, diffTenderAwardAmount.doubleValue(), 0);
      final DBObject third = costEffectivenessTenderAwardAmount.get(2);
      year = (int) third.get(Fields.UNDERSCORE_ID);
      diffTenderAwardAmount = (BigDecimal) third
              .get(CostEffectivenessVisualsController.Keys.DIFF_TENDER_AWARD_AMOUNT);
      Assert.assertEquals(2014, year);
      Assert.assertEquals(600000, diffTenderAwardAmount.doubleValue(), 0);
}