// Backup file declares profile P1 on xoo
tester.get(QProfileBackuper.class).restore(new StringReader(
Resources.toString(getClass().getResource("QProfileBackuperMediumTest/restore.xml"), Charsets.UTF_8)),
null);
QualityProfileDto profile = db.qualityProfileDao().getByNameAndLanguage("P1", "xoo");
assertThat(profile).isNotNull();
List<ActiveRule> activeRules = tester.get(QProfileLoader.class).findActiveRulesByProfile(profile.getKey());
assertThat(activeRules).hasSize(1);
assertThat(activeRules.get(0).severity()).isEqualTo("BLOCKER");
assertThat(activeRules.get(0).inheritance()).isEqualTo(ActiveRule.Inheritance.NONE);
assertThat(activeRules.get(0).params().get("max")).isEqualTo("7");
}