PlanNode joinNode = NodeFactory.getNewNode(NodeConstants.Types.JOIN);
joinNode.setProperty(NodeConstants.Info.JOIN_TYPE, JoinType.JOIN_RIGHT_OUTER);
List crits = new ArrayList();
crits.add(new CompareCriteria(getElementSymbol(1,1), CompareCriteria.EQ, getElementSymbol(2,1)));
joinNode.setProperty(NodeConstants.Info.JOIN_CRITERIA, crits);
joinNode.addLastChild(accessNode1);
joinNode.addLastChild(accessNode2);
helpTestValidJoin(joinNode, accessNode2, false);
}