@Test
public void averageNumberOfTenderers() throws Exception {

    final List<Document> averageNumberOfTenderers = averageNumberOfTenderersController
            .averageNumberOfTenderersYearly(new YearFilterPagingRequest());
    final Document sec = averageNumberOfTenderers.get(1);
    int year = (int) sec.get(AverageNumberOfTenderersController.Keys.YEAR);
    double averageNoTenderers = (double) sec.get(AverageNumberOfTenderersController.Keys.AVERAGE_NO_OF_TENDERERS);
    Assert.assertEquals(2015, year);
    Assert.assertEquals(5.5, averageNoTenderers, 0);
    final Document first = averageNumberOfTenderers.get(0);
    year = (int) first.get(AverageNumberOfTenderersController.Keys.YEAR);
    averageNoTenderers = (double) first.get(AverageNumberOfTenderersController.Keys.AVERAGE_NO_OF_TENDERERS);
    Assert.assertEquals(2014, year);
    Assert.assertEquals(5.0, averageNoTenderers, 0);
}