@Test
public void qualityFundingByTenderDeliveryLocation() throws Exception {

    final List<Document> qualityFundingByTenderDeliveryLocation = fundingByLocationController
            .qualityFundingByTenderDeliveryLocation(new YearFilterPagingRequest());
    final Document first = qualityFundingByTenderDeliveryLocation.get(0);
    int totalTendersWithStartDate = (int) first.get(FundingByLocationController.Keys.TOTAL_TENDERS_WITH_START_DATE);
    int totalTendersWithStartDateAndLocation = (int) first
            .get(FundingByLocationController.Keys.TOTAL_TENDERS_WITH_START_DATE_AND_LOCATION);
    double percentTendersWithStartDateAndLocation = (double) first
            .get(FundingByLocationController.Keys.PERCENT_TENDERS_WITH_START_DATE_AND_LOCATION);
    Assert.assertEquals(3, totalTendersWithStartDate);
    Assert.assertEquals(1, totalTendersWithStartDateAndLocation);
    Assert.assertEquals(33.33, percentTendersWithStartDateAndLocation, 1E-2);
}