final List<Element> elements1 = Arrays.asList(
new Element("Bleed", false, false, false),
new Element("'", false, false, false),
new Element("s", false, false, false)
);
final PatternRule rule1 = new PatternRule("RULE1", new English(), elements1, "desc", "msg", "shortMsg");
final List<Element> elements2 = Arrays.asList(
new Element("Bleed", false, false, false),
new Element("'", false, false, false),
new Element("x", false, false, false)
);
final PatternRule rule2 = new PatternRule("RULE", new English(), elements2, "desc", "msg", "shortMsg");
final SearcherResult searcherResult1 = errorSearcher.findRuleMatchesOnIndex(rule1, new English());
assertEquals(1, searcherResult1.getMatchingSentences().size());
final List<RuleMatch> ruleMatches = searcherResult1.getMatchingSentences().get(0).getRuleMatches();
assertEquals(1, ruleMatches.size());