Assert.assertEquals(privacy.getPrivacyLists().get(0).getPrivacyRules().get(0).getOrder(), 3);
}
@Test
public void marshalChangeActiveListRequest() throws XMLStreamException, JAXBException {
Privacy privacy = new Privacy();
privacy.setActiveName("special");
IQ iq = new IQ(IQ.Type.GET, privacy);
iq.setFrom(Jid.valueOf("romeo@example.net/orchard"));
iq.setId("getlist1");
String xml = marshal(iq);
Assert.assertEquals(xml, "<iq from=\"romeo@example.net/orchard\" id=\"getlist1\" type=\"get\"><query xmlns=\"jabber:iq:privacy\"><active name=\"special\"></active></query></iq>");