@Test
public void exportRuleParameters() throws IOException, SAXException {
Writer writer = new StringWriter();
RulesProfile profile = RulesProfile.create("sonar way", "java");
Rule rule = Rule.create("checkstyle", "IllegalRegexp", "illegal regexp");
rule.createParameter("format");
rule.createParameter("message");
rule.createParameter("tokens");
ActiveRule activeRule = profile.activateRule(rule, RulePriority.BLOCKER);
activeRule.setParameter("format", "foo");
activeRule.setParameter("message", "with special characters < > &");
// the tokens parameter is not set