Map<Integer, ProjectGroupSummary> summaries = projectDao.getProjectsSummary();
assertNotNull( summaries );
assertEquals( "check size of project summaries", 2, summaries.size() );
ProjectGroupSummary summary = summaries.get( testProjectGroup2.getId() );
assertEquals( "check id of project group", testProjectGroup2.getId(), summary.getProjectGroupId() );
assertEquals( "check number of errors", 1, summary.getNumberOfErrors() );
assertEquals( "check number of successes", 0, summary.getNumberOfSuccesses() );
assertEquals( "check number of failures", 0, summary.getNumberOfFailures() );
assertEquals( "check number of projects", 2, summary.getNumberOfProjects() );
summary = summaries.get( defaultProjectGroup.getId() );
assertEquals( "check id of project group", defaultProjectGroup.getId(), summary.getProjectGroupId() );
assertEquals( "check number of errors", 0, summary.getNumberOfErrors() );
assertEquals( "check number of successes", 2, summary.getNumberOfSuccesses() );
assertEquals( "check number of failures", 0, summary.getNumberOfFailures() );
assertEquals( "check number of projects", 2, summary.getNumberOfProjects() );
}