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