REGEX_EXTRACT func = new REGEX_EXTRACT();
String r = func.exec(t1);
assertTrue(r.equals("term1"));
r = func.exec(t2);
assertTrue(r==null);
r = func.exec(t3);
assertTrue(r==null);
String matchRegex = "^(.+)\\b\\s+is a\\s+\\b(.+)$";
TupleFactory tupleFactory = TupleFactory.getInstance();
Tuple te1 = tupleFactory.newTuple(2);