import com.calclab.emite.xep.disco.Item;
public class ItemTest {
@Test
public void shouldParsePacket() {
final Item item = Item.fromPacket(XMLBuilder.fromXML("<item jid='hello@whatever.com/home' name='hello' node='root' />"));
assertNotNull(item);
assertEquals("hello@whatever.com/home", item.jid);
assertEquals("hello", item.name);
assertEquals("root", item.node);
}