Literal.newLiteral("foobarbequebaz bar"),
Literal.newLiteral(".*(ba).*"),
Literal.newLiteral("us n")
);
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));
}