//Plan to test when result type is ByteArray and casting is requested
//for example casting of values coming out of map lookup.
POCast opWithInputTypeAsBA = new POCast(new OperatorKey("", r.nextLong()), -1);
PhysicalPlan planToTestBACasts = constructPlan(opWithInputTypeAsBA);
{
Tuple t = tf.newTuple();
t.append(GenRandomData.genRandSmallTupDataBag(r, 1, 100));
plan.attachInput(t);
Map map = null;
Result res = op.getNext(map);
assertEquals(POStatus.STATUS_ERR, res.returnStatus);