}
@Test
public void testIsoDateConverter()
{
final DateConverter dateConverter = new DateConverter();
final ISODateConverter isoDateConverter = new ISODateConverter();
final PFUserDO cetUser = new PFUserDO();
cetUser.setTimeZone(DateHelper.EUROPE_BERLIN);
PFUserContext.setUser(cetUser); // login CET user.
DateHolder dh = new DateHolder();
dh.setDate(2010, Calendar.AUGUST, 29, 23, 8, 17, 123);
assertEquals("1283116097123", dateConverter.toString(dh.getDate()));
assertEquals("2010-08-29 23:08:17.123", isoDateConverter.toString(dh.getDate()));
assertEquals("2010-08-29 23:08:17", isoDateConverter.toString(dh.setMilliSecond(0).getDate()));
assertEquals("2010-08-29 23:08", isoDateConverter.toString(dh.setSecond(0).getDate()));
assertEquals("2010-08-29 23:00", isoDateConverter.toString(dh.setMinute(0).getDate()));
assertEquals("2010-08-29", isoDateConverter.toString(dh.setHourOfDay(0).getDate()));