db.qualityProfileDao().insert(dbSession, profileDto);
RuleKey ruleKey = RuleTesting.XOO_X1;
RuleDto ruleDto = newRuleDto(ruleKey);
db.ruleDao().insert(dbSession, ruleDto);
RuleParamDto minParam = new RuleParamDto()
.setName("min")
.setType("STRING");
db.ruleDao().addRuleParam(dbSession, ruleDto, minParam);
RuleParamDto maxParam = new RuleParamDto()
.setName("max")
.setType("STRING");
db.ruleDao().addRuleParam(dbSession, ruleDto, maxParam);
ActiveRuleDto activeRule = ActiveRuleDto.createFor(profileDto, ruleDto)