public void count_all_by_index_field() {
QualityProfileDto profileDto1 = QProfileTesting.newXooP1();
QualityProfileDto profileDto2 = QProfileTesting.newXooP2();
db.qualityProfileDao().insert(dbSession, profileDto1, profileDto2);
RuleKey ruleKey = RuleTesting.XOO_X1;
RuleDto ruleDto = newRuleDto(ruleKey);
db.ruleDao().insert(dbSession, ruleDto);
ActiveRuleDto activeRule1 = ActiveRuleDto.createFor(profileDto1, ruleDto).setSeverity(Severity.MAJOR);
ActiveRuleDto activeRule2 = ActiveRuleDto.createFor(profileDto2, ruleDto).setSeverity(Severity.MAJOR);