StatisticsService { public List<BarChartStatisticsResult> getProjectsPerStatus() { return projectPerStatusSumAction.getProjectsPerStatus(); } @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 getProjectsPerStatus_should_delegateToProperActionToRetrieveData() throws Exception { instance.getProjectsPerStatus(); verify(projectPerStatusSumAction).getProjectsPerStatus(); }