@Test
public void testCastToTimestampWithTimeZone()
throws Exception
{
assertFunction("cast(DATE '2001-1-22' as timestamp with time zone)",
new SqlTimestampWithTimeZone(new DateTime(2001, 1, 22, 0, 0, 0, 0, DATE_TIME_ZONE).getMillis(), TIME_ZONE_KEY));
}