if (optimize) optimizePlan(plan);
// load the expected plan from file
LogicalPlanLoader planLoader = new LogicalPlanLoader() ;
LogicalPlan expectedPlan = planLoader.loadFromFile(file, LogicalPlan.class) ;
System.out.println("Expected plan:") ;
printTypeGraph(expectedPlan) ;
// do the comparison
LogicalPlanComparer comparer = new LogicalPlanComparer() ;