@Test
public void testNormalizeWithReference() throws Exception {
final DataType arrayType = new ArrayType(DataTypes.STRING);
ToLongArrayFunction impl = (ToLongArrayFunction)functions.get(
new FunctionIdent(ToLongArrayFunction.NAME, ImmutableList.of(arrayType)));
Reference foo = TestingHelpers.createReference("foo", arrayType);
Symbol symbol = impl.normalizeSymbol(new Function(impl.info(), Arrays.<Symbol>asList(foo)));
assertThat(symbol, instanceOf(Function.class));
}