public void testDateConversion( ) throws ConverterException {
// assert java.sql.Date.
long millis = LocalDate.now().toDateTimeAtStartOfDay().getMillis();
java.sql.Date sqlDate = new java.sql.Date( millis );
TIMESTAMP oracleTimestamp = new TIMESTAMP(sqlDate);
Date convertedDate = Convert.getConverterIfExists(Date.class).convert(oracleTimestamp);
assertEquals(sqlDate, convertedDate);
// assert java.util.Date
Date origDate = new Date();
oracleTimestamp = new TIMESTAMP(new Timestamp(origDate.getTime()));
convertedDate = Convert.getConverterIfExists(Date.class).convert(oracleTimestamp);
assertEquals(origDate, convertedDate);
}