@Test(expected = ConversionException.class)
public void testInvalidDateInput_String() throws Exception {
DateConverter dc = new DateConverter(DateFormat.getDateInstance(DateFormat.LONG));
// no long constructor
dc = new DateConverter(null);
dc.convert(String.class, "123");
}
@Test(expected = ConversionException.class)
public void testInvalidCalendarInput() throws Exception {
CalendarConverter dc = new CalendarConverter(DateFormat.getDateInstance(DateFormat.LONG));