public void testAppendToRuleList() {
node.addActions(new String[] { "action1", "action3" });
List<GitRule> rules = Lists.newArrayList();
node.appendToRuleList(rules, "pId", "pValue");
Assert.assertEquals(1, rules.size());
GitRule rule = rules.get(0);
Assert.assertNotNull(rule);
Assert.assertTrue(Strings.isNullOrEmpty(rule.getEvaluatorMethodName()));
Assert.assertEquals("testId", rule.getId());
Assert.assertEquals("pId", rule.getParentId());
Assert.assertEquals("pValue", rule.getParentValue());
Assert.assertEquals(2, rule.getActionMethodNames().length);
Assert.assertEquals("action1", rule.getActionMethodNames()[0]);
Assert.assertEquals("action3", rule.getActionMethodNames()[1]);
}