@Test
public void testVarParentShadow() throws RecognitionException,
FlumeSpecException {
String shadowed = "{ null0 => { null1 => [ logicalNode(\"collector1\"), logicalNode(\"collector2\"), logicalNode(\"collector3\") ] } }";
CommonTree sink = FlumeBuilder.parseSink(shadowed);
LOG.info(sink.toStringTree());
// parent wins (pattern could match null0 or null1)
PatternMatch pp = recursive(var("ln", kind("DECO").child(
recursive(var("ln", kind("logicalNode"))))));
Map<String, CommonTree> m = pp.match(sink);