### Question:
BasicRuleSet implements RuleSet { public void addRule(Rule rule) { rules.add(rule); } BasicRuleSet(Rule... rules); void addRule(Rule rule); BasicRuleSet withRule(Rule rule); @Override List<Rule> getRules(); @Override Violations applyTo(HtmlPage htmlPage); @Override String toString();  }### Answer:
@Test public void getRulesShouldReturnAllRules() throws Exception { ruleSet.addRule(new AvoidBlinkTextRule()); ruleSet.addRule(new AvoidMarqueeTextRule()); assertRules(ruleSet, 2); }