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);
db.activeRuleDao().insert(dbSession, activeRule1, activeRule2);
dbSession.commit();
// 0. Test base case
assertThat(index.get(ActiveRuleIndex.class).countAll()).isEqualTo(2);