StatisticsService { public List<BarChartStatisticsResult> getCommentsCountPerProject(int projectCount) { return commentCountPerProjectAction.getCommentCountPerProjectStatistic(projectCount); } @Autowired  StatisticsService(CreatedProjectSumAction createdProjectSumAction, RegisteredUserSumAction registeredUserSumAction, ProjectPerStatusSumAction projectPerStatusSumAction, CommentSumAction commentSumAction, CommentCountPerProjectAction commentCountPerProjectAction); List<LineChartStatisticsResult> getCurrentStatistics(TimeRangedStatisticsRequest request); List<BarChartStatisticsResult> getProjectsPerStatus(); LineChartStatisticsResult getSumComments(TimeRangedStatisticsRequest request); List<BarChartStatisticsResult> getCommentsCountPerProject(int projectCount);  }
@Test public void getCommentsCountPerProject_should_call_action() throws Exception { instance.getCommentsCountPerProject(5); verify(commentCountPerProjectAction).getCommentCountPerProjectStatistic(5); }