public void testNormalizeWithReferenceAndLiteral() throws Exception {
List<Symbol> arguments = Arrays.<Symbol>asList(
createReference("foo", DataTypes.GEO_POINT),
Literal.newGeoShape("POLYGON ((5 5, 20 5, 30 30, 5 30, 5 5))"));
WithinFunction withinFunction = functionFromArgs(arguments);
Symbol function = new Function(withinFunction.info(), arguments);
Symbol normalizedSymbol = withinFunction.normalizeSymbol((Function) function);
assertThat(normalizedSymbol, Matchers.sameInstance(function));
}