builder.add(RuleKey.of("squid", "S0002"));
builder.add(RuleKey.of("findbugs", "NPE"));
Rules rules = builder.build();
assertThat(rules.findAll()).hasSize(3);
assertThat(rules.findByRepository("squid")).hasSize(2);
assertThat(rules.findByRepository("findbugs")).hasSize(1);
assertThat(rules.findByRepository("unknown")).isEmpty();
Rule squid1 = rules.find(RuleKey.of("squid", "S0001"));