PORead read = new PORead(new OperatorKey("", r.nextLong()), input);
List<PhysicalOperator> inputs = new LinkedList<PhysicalOperator>();
inputs.add(read);
POSort sort = new POSort(new OperatorKey("", r.nextLong()), -1, inputs,
sortPlans, mAscCols, null);
Tuple t = null;
Result res ;
// output line 1
res = sort.getNextTuple();
assertNull(((Tuple) res.result).get(0)) ;
assertEquals(((Tuple) res.result).get(1), 10) ;
// output line 2
res = sort.getNextTuple();
assertEquals(((Tuple) res.result).get(0), 1) ;
assertEquals(((Tuple) res.result).get(1), 8) ;
// output line 3
res = sort.getNextTuple();
assertEquals(((Tuple) res.result).get(0), 3) ;
assertEquals(((Tuple) res.result).get(1), 8) ;
// output line 4
res = sort.getNextTuple();
assertNull(((Tuple) res.result).get(0)) ;
assertNull(((Tuple) res.result).get(1)) ;
// output line 5
res = sort.getNextTuple();
assertEquals(((Tuple) res.result).get(0), 1 );
assertNull(((Tuple) res.result).get(1)) ;
}