DateToSQLDateConverter extends AbstractGenericConverter<Date, java.sql.Date> { @Override public java.sql.Date convert(Date source) { return new java.sql.Date(source.getTime()); }  @Override java.sql.Date convert(Date source);  }
@Test public void testConvert() { Date date = new Date(); java.sql.Date sqlDate = converter.convert(date); Assert.assertEquals(date.getTime(), sqlDate.getTime()); }