final XmppURI uri = uri("name@domain/resource");
final XMLPacket delayNode = XMLBuilder.create("x", "jabber:x:delay").getXML();
delayNode.setAttribute("xmlns", "jabber:x:delay");
delayNode.setAttribute("from", "name@domain/resource");
delayNode.setAttribute("stamp", "19800415T17:15:02");
final Delay delay = new Delay(delayNode);
assertNotNull(delay);
final Date date = new Date(80, 3, 15, 17, 15, 2);
date.setTime(date.getTime() - (date.getTimezoneOffset() * 60000));
assertEquals(uri, delay.getFrom());
assertEquals(date, delay.getStamp());
}