ruleRegistry.addElementFactory( NonTapFactory.TEMP_TAP, new NonTapFactory() );
PlannerContext plannerContext = new PlannerContext( ruleRegistry, null, null, null, true );
ruleRegistry.addRule( new RuleInsertionTransformer( PlanPhase.PreResolveAssembly, new TestCheckpointExpression(), IntermediateTapElementFactory.TEMP_TAP ) );
// ruleRegistry.addRule( new RuleContractedTransform( PlanPhase.PreResolve, new NoOpPipeExpression() ) );
RuleResult ruleResult = new RuleExec( ruleRegistry ).executeRulePhase( PlanPhase.PreResolveAssembly, plannerContext, new RuleResult( new StandardElementGraph() ) );
FlowElementGraph flowElementGraph = ruleResult.getAssemblyGraph();