@Test
@SuppressWarnings("unchecked")
public void testNormalizeSymbol() throws Exception {
FunctionImplementation castStringToInteger = functions.get(new FunctionIdent(ToIntFunction.NAME, ImmutableList.<DataType>of(DataTypes.STRING)));
Function function = new Function(castStringToInteger.info(), Arrays.<Symbol>asList(Literal.newLiteral("123")));
Symbol result = castStringToInteger.normalizeSymbol(function);
assertLiteralSymbol(result, 123);
FunctionImplementation castFloatToInteger = functions.get(new FunctionIdent(ToIntFunction.NAME, ImmutableList.<DataType>of(DataTypes.FLOAT)));
function = new Function(castFloatToInteger.info(), Arrays.<Symbol>asList(Literal.newLiteral(12.5f)));
result = castStringToInteger.normalizeSymbol(function);
assertLiteralSymbol(result, 12);
}