@Test
public void testDate() throws Exception {
SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yyyy");
String s = df.format(df.parse("10-Jul-1974"));
final FieldValue val = FieldFactory.getFieldValue( s, ValueType.DATE_TYPE,
new DateFormatsImpl() );
assertEquals( Date.class, val.getValue().getClass() );
Date dt = (Date) val.getValue();
assertEquals(s, df.format(dt));