public void testDateTruncWithStringLiteral() {
Scalar implementation = (Scalar)functions.get(new FunctionIdent(DateTruncTimeZoneAwareFunction.NAME,
Arrays.<DataType>asList(DataTypes.STRING, DataTypes.STRING, DataTypes.STRING)));
assertNotNull(implementation);
Function function = new Function(implementation.info(), Arrays.<Symbol>asList(
Literal.newLiteral("day"),
Literal.newLiteral("Europe/Vienna"),
Literal.newLiteral("2014-06-03")
));
Literal day = (Literal)implementation.normalizeSymbol(function);