//Check if the input key and the output key are same
Tuple inpKey = TupleFactory.getInstance().newTuple(2);
inpKey.set(0, val.get(0));
inpKey.set(1, val.get(1));
assertEquals(0, inpKey.compareTo((Tuple)t.get(1)));
++size;
}
//check if all the tuples in the input are generated
assertEquals(db.size(), size);