@Test
public void testMapLookUp() throws PlanException, ExecException {
POProject prj = new POProject(new OperatorKey("", r.nextLong()), -1, 0);
POMapLookUp op = new POMapLookUp(new OperatorKey("", r.nextLong()), -1);
PhysicalPlan plan = new PhysicalPlan();
plan.add(op);
plan.add(prj);
plan.connect(prj, op);
for(int i = 0 ; i < 10; i++) {
map = GenRandomData.genRandMap(r, 10);
Tuple t = TupleFactory.getInstance().newTuple();
t.append(map);
for(Map.Entry<String, Object> e : map.entrySet()) {
op.setLookUpKey(e.getKey());
plan.attachInput(t);
Result res = op.getNext(map);
//System.out.println(e.getValue() + " : " + res.result);
assertEquals(e.getValue(), res.result);
}