* {@link org.apache.ws.jaxme.xs.util.XsDateFormat#format(Object, StringBuffer, java.text.FieldPosition)}.
*/
public void testFormatDate() {
Calendar cal = getCalendar(TimeZone.getTimeZone("GMT"));
assertEquals(0, cal.get(Calendar.MILLISECOND));
XsDateFormat format = new XsDateFormat();
String got = format.format(cal);
String expect = "2004-01-14Z";
assertEquals(expect, got);
cal = getCalendar(TimeZone.getTimeZone("GMT-03:00"));
assertEquals(0, cal.get(Calendar.MILLISECOND));
got = format.format(cal);
expect = "2004-01-14-03:00";
assertEquals(expect, got);
}