public void testGetValue() {
ScalarFunction scalarFunction = TimeComponentExtractor.getInstance(
TimeComponentExtractor.TimeComponent.YEAR);
DataTable table = new DataTable();
table.addColumn(new ColumnDescription("dateCol", ValueType.DATE, "dateCol"));
table.addColumn(new ColumnDescription("numberCol", ValueType.NUMBER, "numberCol"));
table.addColumn(new ColumnDescription("timeOfDayCol", ValueType.TIMEOFDAY, "timeOfDayCol"));
table.addColumn(new ColumnDescription("dateTimeCol", ValueType.DATETIME, "dateTimeCol"));
TableRow row = new TableRow();
row.addCell(new TableCell(new DateValue(2008, 5, 3)));
row.addCell(new TableCell(new NumberValue(23)));
row.addCell(new TableCell(new TimeOfDayValue(13, 12, 11)));