}
public void checkQuarterly(PropertyBook propertyBook,
List<Annotation> annotationsExpectedToBeUsedInQuarterly) {
QuarterlyReportViewModel quarterlyReportViewModel = new QuarterlyReportViewModel();
quarterlyReportViewModel.updateBookSelection(BookSelection
.fromBook(propertyBook));
quarterlyReportViewModel.setQuarterlyReportYear(2012);
AnnotationDateQuarterlyGroupingModel quarterlyGroupingModel = quarterlyReportViewModel
.getAnnotationsDateQuarterlyGroupingModel();
Integer numberOfGroups = quarterlyGroupingModel.getGroupCount();
// we expect 1 quarter (all the annotations are in the first quarter)
Assert.assertEquals(new Integer(1), numberOfGroups);
for (Integer currentQuarter = 0; currentQuarter < numberOfGroups; currentQuarter++) {