@Test
public void shouldExportFixedRulesCorrectly() throws Exception {

  Rule rule = Rule.create(CodeNarcRulesDefinition.REPOSITORY_KEY, "org.codenarc.rule.design.PrivateFieldCouldBeFinalRule.fixed", "Private Field Could Be Final");
  profile.activateRule(rule, RulePriority.MAJOR);
  exporter.exportProfile(profile);
  assertSimilarXml(
    TestUtils.getResource("/org/sonar/plugins/groovy/codenarc/exportProfile/exportFixedRules.xml"),
    writer.toString());
}