@Test
public void topTenLargestTenders() throws Exception {

    final List<Document> topTenLargestTenders = topTenController
            .topTenLargestTenders(new YearFilterPagingRequest());
    Assert.assertEquals(3, topTenLargestTenders.size());
    final Document first = topTenLargestTenders.get(0);
    BasicDBObject tender = (BasicDBObject) first.get("tender");
    BasicDBObject value = (BasicDBObject) tender.get("value");
    double amount = (double) value.get("amount");
    Assert.assertEquals(600000.0, amount, 0);
    final Document second = topTenLargestTenders.get(1);
    tender = (BasicDBObject) second.get("tender");
    value = (BasicDBObject) tender.get("value");
    amount = (double) value.get("amount");
    Assert.assertEquals(400000.0, amount, 0);
    final Document third = topTenLargestTenders.get(2);
    tender = (BasicDBObject) third.get("tender");
    value = (BasicDBObject) tender.get("value");
    amount = (double) value.get("amount");
    Assert.assertEquals(9000.0, amount, 0);
}