assertEquals( 2, phyPlan.getRoots().size() );
assertEquals( POLoad.class, phyPlan.getRoots().get(0).getClass() );
POLoad load = (POLoad)phyPlan.getRoots().get(0);
assertEquals( POLocalRearrange.class, phyPlan.getSuccessors(load).get(0).getClass() );
POLocalRearrange localR = (POLocalRearrange)phyPlan.getSuccessors(load).get(0);
assertEquals( 2, localR.getPlans().size() );
PhysicalPlan cogroupPlan = localR.getPlans().get(0);
assertEquals( 1, cogroupPlan.getLeaves().size() );
assertEquals( POProject.class, cogroupPlan.getLeaves().get(0).getClass() );
POProject prj = (POProject)cogroupPlan.getLeaves().get(0);
assertEquals( 0, prj.getColumn() );
assertEquals( DataType.CHARARRAY, prj.getResultType() );
PhysicalPlan cogroupPlan2 = localR.getPlans().get(1);
assertEquals( 1, cogroupPlan2.getLeaves().size() );
assertEquals( POProject.class, cogroupPlan2.getLeaves().get(0).getClass() );
POProject prj2 = (POProject)cogroupPlan2.getLeaves().get(0);
assertEquals( 1, prj2.getColumn() );
assertEquals( DataType.INTEGER, prj2.getResultType() );
assertEquals( POGlobalRearrange.class, phyPlan.getSuccessors(localR).get(0).getClass() );
POGlobalRearrange globalR = (POGlobalRearrange)phyPlan.getSuccessors(localR).get(0);
assertEquals( DataType.TUPLE, globalR.getResultType() );
assertEquals( POLoad.class, phyPlan.getRoots().get(1).getClass() );
POLoad load2 = (POLoad)phyPlan.getRoots().get(0);
assertEquals( POLocalRearrange.class, phyPlan.getSuccessors(load2).get(0).getClass() );
POLocalRearrange localR3 = (POLocalRearrange)phyPlan.getSuccessors(load2).get(0);
assertEquals( 2, localR3.getPlans().size() );
PhysicalPlan cogroupPlan3 = localR3.getPlans().get(0);
POProject prj3 = (POProject)cogroupPlan3.getLeaves().get(0);
assertEquals( 0, prj3.getColumn() );
assertEquals( DataType.CHARARRAY, prj3.getResultType() );
PhysicalPlan cogroupPlan4 = localR3.getPlans().get(1);
POProject prj4 = (POProject)cogroupPlan4.getLeaves().get(0);
assertEquals( 1, prj4.getColumn() );
assertEquals( DataType.INTEGER, prj4.getResultType() );
assertEquals( POPackage.class, phyPlan.getSuccessors(globalR).get(0).getClass() );