protected void assertPresenceStanza(Entity expectedFrom, Entity expectedTo, PresenceStanzaType expectedType,
String expectedShow, String expectedStatus,
List<MucUserItem> expectedMucItems, List<StatusCode> expectedMucStatuses,
Stanza actualStanza) throws Exception {
PresenceStanza actualPresenceStanza = (PresenceStanza) PresenceStanza.getWrapper(actualStanza);
assertNotNull(actualStanza);
assertEquals(expectedFrom, actualStanza.getFrom());
assertEquals(expectedTo, actualStanza.getTo());
if(expectedType != null) {
assertEquals(expectedType.value(), actualStanza.getAttributeValue("type"));
} else {
assertEquals(null, actualStanza.getAttributeValue("type"));
}
assertEquals(expectedShow, actualPresenceStanza.getShow());
assertEquals(expectedStatus, actualPresenceStanza.getStatus(null));
XMLElement xElm = actualStanza.getSingleInnerElementsNamed("x", NamespaceURIs.XEP0045_MUC_USER);
assertNotNull(xElm);
Iterator<XMLElement> innerElements = xElm.getInnerElements().iterator();