ArrayList<String> rules = new ArrayList<String>();
rules.add("Rule 1");
rules.add("Rule 2");
ruleNames.put("testPackage", rules);
ruleNamesService.onRuleNamesUpdated(new RuleNameUpdateEvent(ruleNames));
assertEquals(2, ruleNamesService.getRuleNames().size());
assertEquals("Rule 1", ruleNamesService.getRuleNames().get(0));
assertEquals("Rule 2", ruleNamesService.getRuleNames().get(1));