}
Consequence consequence = rule.getConsequence();
assertNotNull(consequence);
assertTrue(consequence instanceof PojoConsequence);
PojoConsequence pojoConsequence = (PojoConsequence) consequence;
String[] pojoConsequenceMethodNames = pojoConsequence.getMethodNames();
for (int i = 0; i < pojoConsequenceMethodNames.length; i++) {
if (!expectedConsequenceMethodNames.contains(pojoConsequenceMethodNames[i])) {
fail("Unexpected rule pojo-consequence method: " + pojoConsequenceMethodNames[i]);
}
}