@Test
public void unregisterByNameNonExistingRule() {

    Rule r1 = new BasicRule("rule1");
    Set<Rule> ruleSet = new HashSet<>();
    ruleSet.add(r1);
    
    rules = new Rules(ruleSet);
    rules.unregister("rule2");
    assertThat(rules).hasSize(1).containsExactly(r1);
}