import com.calclab.emite.xep.disco.Identity;
public class IdentityTest {
@Test
public void shouldParsePacket() {
final Identity identity = Identity.fromPacket(XMLBuilder.fromXML("<identity category='pubsub' type='pep' name='publish' />"));
assertNotNull(identity);
assertEquals("pubsub", identity.category);
assertEquals("pep", identity.type);
assertEquals("publish", identity.name);
}