@Test
public void constructDateAndTimeValue() {

  assertEquals(new ExprDateValue("2012-07-07"),
      ExprValueUtils.fromObjectValue("2012-07-07", DATE));
  assertEquals(new ExprTimeValue("01:01:01"),
      ExprValueUtils.fromObjectValue("01:01:01", TIME));
  assertEquals(new ExprDatetimeValue("2012-07-07 01:01:01"),
      ExprValueUtils.fromObjectValue("2012-07-07 01:01:01", DATETIME));
  assertEquals(new ExprTimestampValue("2012-07-07 01:01:01"),
      ExprValueUtils.fromObjectValue("2012-07-07 01:01:01", TIMESTAMP));
}