{
Assert.assertEquals(((SimpleValue)dt[i]).gDateValue(), new GDate(gd[i]));
Assert.assertEquals(gd[i], dt[i].objectValue());
}
Assert.assertEquals(new XmlCalendar("2001-08-06T03:34:00"), gd[0]);
Assert.assertEquals(new XmlCalendar("2002-01-04"), gd[1]);
Assert.assertEquals(new XmlCalendar("2002-08-26T23:10:00"), gd[2]);
Assert.assertEquals(XmlDateTime.type, dt[0].instanceType());
Assert.assertEquals(XmlDate.type, dt[1].instanceType());
Assert.assertEquals(XmlDateTime.type, dt[2].instanceType());
reports.setWhenArray(0, new XmlCalendar("1980-04-18"));
reports.setWhenArray(1, new XmlCalendar("1970-12-20T04:33:00"));
dt = reports.xgetWhenArray();
gd = reports.getWhenArray();
Assert.assertEquals(new XmlCalendar("1980-04-18"), gd[0]);
Assert.assertEquals(new XmlCalendar("1970-12-20T04:33:00"), gd[1]);
Assert.assertEquals(new XmlCalendar("2002-08-26T23:10:00"), gd[2]);
Assert.assertEquals(XmlDate.type, dt[0].instanceType());
Assert.assertEquals(XmlDateTime.type, dt[1].instanceType());
Assert.assertEquals(XmlDateTime.type, dt[2].instanceType());