/** @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a> */
public class FooVisitorTestCase extends AbstractTestCase {
private static void assertSatisfied(String expression, String... expected) throws Exception {
RENode root = new REParser(expression).parse();
root.accept(new CaptureGroupTransformation());
List<ValueResolverFactory.Alternative> alternatives = new ValueResolverFactory().foo(root);
assertEquals(expected.length, alternatives.size());
for (int i = 0;i < expected.length;i++) {
assertEquals(expected[i], alternatives.get(i).getResolvingExpression().toString());
}