Tuple t3 = TupleFactory.getInstance().newTuple(2);
t3.set(0, null);
t3.set(1, "^\\/search\\/iy\\/.*");
RegexMatch func = new RegexMatch();
Integer r = func.exec(t1);
assertTrue(r==1);
r = func.exec(t2);
assertTrue(r==0);
r = func.exec(t3);
assertTrue(r==null);
}