calendar.set(Calendar.DATE, 23);
calendar.set(Calendar.HOUR_OF_DAY, 22);
calendar.set(Calendar.MINUTE, 37);
calendar.set(Calendar.SECOND, 34);
calendar.set(Calendar.MILLISECOND, 0);
Rpc rpc = new Rpc("testMethod", new Value(calendar.getTime()));
String xml = marshal(rpc);
Assert.assertEquals(xml, "<query xmlns=\"jabber:iq:rpc\"><methodCall><methodName>testMethod</methodName><params><param><value><dateTime.iso8601>" + DatatypeConverter.printDateTime(calendar) + "</dateTime.iso8601></value></param></params></methodCall></query>");
}