### Question:
BasicRuleSet implements RuleSet { public BasicRuleSet withRule(Rule rule) { addRule(rule); return this; } 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 withRulesShouldAddRulesToRuleSet() throws Exception { ruleSet.withRule(new AvoidBlinkTextRule()).withRule(new AvoidMarqueeTextRule()); assertRules(ruleSet, 2); }