when(reviewDao.countByQuery(argThat(unassignedReviewQueryMatcher()))).thenReturn(2);
when(reviewDao.countByQuery(argThat(plannedReviewQueryMatcher()))).thenReturn(3);
when(reviewDao.countByQuery(argThat(falsePositiveReviewQueryMatcher()))).thenReturn(4);
ReviewsMeasuresDecorator decorator = new ReviewsMeasuresDecorator(reviewDao);
Resource<?> resource = new File("foo").setId(1);
<BUG>DecoratorContext context = mock(DecoratorContext.class);
List<Violation> violations = mock(List.class);
when(violations.size()).thenReturn(35);
when(context.getViolations()).thenReturn(violations);</BUG>
decorator.decorate(resource, context);

when(reviewDao.countByQuery(argThat(unassignedReviewQueryMatcher()))).thenReturn(2);
when(reviewDao.countByQuery(argThat(plannedReviewQueryMatcher()))).thenReturn(3);
when(reviewDao.countByQuery(argThat(falsePositiveReviewQueryMatcher()))).thenReturn(4);
ReviewsMeasuresDecorator decorator = new ReviewsMeasuresDecorator(reviewDao);
Resource<?> resource = new File("foo").setId(1);
DecoratorContext context = mock(DecoratorContext.class);
when(context.getMeasure(CoreMetrics.VIOLATIONS)).thenReturn(new Measure(CoreMetrics.VIOLATIONS, 35d));
decorator.decorate(resource, context);
