@Test
public void shouldNotExportParametersWithDefaultValue() throws Exception {

  Rule rule = Rule.create(CodeNarcRulesDefinition.REPOSITORY_KEY, "org.codenarc.rule.size.ClassSizeRule", "Class Size");
  rule.createParameter("maxLines").setDefaultValue("20");
  profile.activateRule(rule, RulePriority.MAJOR).setParameter("maxLines", "20");
  exporter.exportProfile(profile);
  assertSimilarXml(
    TestUtils.getResource("/org/sonar/plugins/groovy/codenarc/exportProfile/exportNullParameters.xml"),
    writer.toString());
}