LogicalPlan expectedPlan = planLoader.loadFromFile(file, LogicalPlan.class) ;
System.out.println("Expected plan:") ;
printTypeGraph(expectedPlan) ;
// do the comparison
LogicalPlanComparer comparer = new LogicalPlanComparer() ;
StringBuilder errMsg = new StringBuilder() ;
boolean result = comparer.structurallyEquals(plan, expectedPlan, errMsg) ;
// check
System.out.println(errMsg.toString()) ;
assertTrue("The expected plan is different", result);
System.out.println("Checking DONE!") ;