Smooks smooks = new Smooks(getClass().getResourceAsStream("config-01.xml"));
ValidationResult result = new ValidationResult();
smooks.setFilterSettings(filterSettings);
smooks.filterSource(new StringSource("<a><b x='Xx'>11</b><b x='C'>Aaa</b></a>"), result);
List<OnFailResult> warnings = result.getWarnings();
assertEquals(2, warnings.size());
assertEquals("RegexRuleEvalResult, matched=false, providerName=regex, ruleName=custom, text=11, pattern=[A-Z]([a-z])+", warnings.get(0).getFailRuleResult().toString());
assertEquals("RegexRuleEvalResult, matched=false, providerName=regex, ruleName=custom, text=C, pattern=[A-Z]([a-z])+", warnings.get(1).getFailRuleResult().toString());