}
/** Test for JAXME-42 in Jira.
*/
public void testJira42() throws Exception {
XsDateTimeFormat f = new XsDateTimeFormat();
Calendar cal = (Calendar) f.parseObject("2004-10-15T13:00:00Z");
assertEquals(2004, cal.get(Calendar.YEAR));
assertEquals(9, cal.get(Calendar.MONTH));
assertEquals(15, cal.get(Calendar.DAY_OF_MONTH));
assertEquals(13, cal.get(Calendar.HOUR_OF_DAY));
assertEquals(0, cal.get(Calendar.MINUTE));
assertEquals(0, cal.get(Calendar.SECOND));
assertEquals(0, cal.get(Calendar.MILLISECOND));
assertEquals(TimeZone.getTimeZone("GMT"), cal.getTimeZone());
String s = f.format(cal);
assertEquals("2004-10-15T13:00:00Z", s);
}