final XmppURI uri = uri("name@domain/resource");
stanza.setTo(uri);
assertEquals("name@domain/resource", stanza.getTo().toString());
stanza.setTo(null);
final XMLPacket delayNode = stanza.getXML().addChild("x");
delayNode.setAttribute("xmlns", "jabber:x:delay");
delayNode.setAttribute("from", "name@domain/resource");
delayNode.setAttribute("stamp", "19800415T15:15:02");
final Delay delay = DelayHelper.getDelay(stanza);
assertNotNull(delay);
final Date date = new Date(80, 3, 15, 15, 15, 2);
date.setTime(date.getTime() - (date.getTimezoneOffset() * 60000));