@Test
public void fundingByTenderDeliveryLocation() throws Exception {

    final List<Document> fundingByTenderDeliveryLocation = fundingByLocationController
            .fundingByTenderDeliveryLocation(new YearFilterPagingRequest());
    final Document first = fundingByTenderDeliveryLocation.get(0);
    int year = (int) first.get(FundingByLocationController.Keys.YEAR);
    BasicDBObject deliveryLocation = (BasicDBObject) first
            .get(FundingByLocationController.Keys.ITEMS_DELIVERY_LOCATION);
    BasicDBObject geometry = (BasicDBObject) deliveryLocation.get("geometry");
    String geometryType = (String) geometry.get("type");
    List<Double> coordinates = (List<Double>) geometry.get("coordinates");
    double totalTendersAmount = (double) first.get(FundingByLocationController.Keys.TOTAL_TENDERS_AMOUNT);
    int tendersCount = (int) first.get(FundingByLocationController.Keys.TENDERS_COUNT);
    Assert.assertEquals(2015, year);
    Assert.assertEquals("Point", geometryType);
    Assert.assertEquals(new ArrayList<>(Arrays.asList(45.9432, 24.9668)), coordinates);
    Assert.assertEquals(9000.0, totalTendersAmount, 0);
    Assert.assertEquals(1, tendersCount);
}