converToDate(date1, 1980, 8, 9);
}
private void converToDate(String dateStr, int year, int month, int day) {
Converter c = new DateConverter();
Date date = (Date) c.convert(Date.class, dateStr);
Calendar calendar = new GregorianCalendar();
calendar.setTime(date);
assertEquals(calendar.get(Calendar.YEAR), year);
assertEquals(calendar.get(Calendar.MONTH), month);
assertEquals(calendar.get(Calendar.DAY_OF_MONTH), day);