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