Literal.newLiteral(".*(ba).*")
);
Function function = createFunction(MatchesFunction.NAME, DataTypes.STRING, arguments);
MatchesFunction regexpImpl = (MatchesFunction) functions.get(function.info().ident());
Symbol result = regexpImpl.normalizeSymbol(function);
BytesRef[] expected = new BytesRef[]{ new BytesRef("ba") };
assertLiteralSymbol(result, expected, new ArrayType(DataTypes.STRING));
arguments = Arrays.<Symbol>asList(
createReference("text", DataTypes.STRING),