// Create the equivalent plan nodes for what should be created ...
PlanNode viewProject = new PlanNode(Type.PROJECT, selector("t1"));
PlanNode viewSelect = new PlanNode(Type.SELECT, viewProject, selector("t1"));
PlanNode viewSource = new PlanNode(Type.SOURCE, viewSelect, selector("t1"));
viewProject.setProperty(Property.PROJECT_COLUMNS, columns(column("t1", "c11"), column("t1", "c12")));
viewSelect.setProperty(Property.SELECT_CRITERIA, new Comparison(new PropertyValue(selector("t1"), "c13"),
Operator.LESS_THAN, new Literal(3L)));
viewSource.setProperty(Property.SOURCE_NAME, selector("t1"));
viewSource.setProperty(Property.SOURCE_COLUMNS, schemata.getTable(selector("t1")).getColumns());
// Execute the rule ...