+ DummyMetadataLoader.class.getName() + "('"+ checkFileName +"');");
planTester.buildPlan("B = foreach A generate $0 ;");
LogicalPlan plan = planTester.buildPlan("C = limit B 10;");
new LOPrinter(System.err, plan).visit();
// Set the logical plan values correctly in all the operators
PlanSetter ps = new PlanSetter(plan);
ps.visit();
// the optimizer should run atleast one iteration
LogicalOptimizerDerivative optimizer =
new LogicalOptimizerDerivative(plan);
int numIterations = optimizer.optimize();
assertTrue(numIterations > 0);