public void testEnterRoomWithHistorySince() throws JAXBException, XMLStreamException {
Date date = new Date();
Calendar calendar = new GregorianCalendar();
calendar.setTime(date);
Presence presence = new Presence();
presence.getExtensions().add(new Muc(History.since(date)));
String xml = marshal(presence);
Assert.assertEquals(xml, "<presence><x xmlns=\"http://jabber.org/protocol/muc\"><history since=\"" + DatatypeConverter.printDateTime(calendar) + "\"></history></x></presence>");
}