}
@Test
public void testInfoDiscovery() throws XmppException {
MockServer mockServer = new MockServer();
TestXmppSession connection1 = new TestXmppSession(ROMEO, mockServer);
new TestXmppSession(JULIET, mockServer);
ServiceDiscoveryManager serviceDiscoveryManager = connection1.getExtensionManager(ServiceDiscoveryManager.class);
InfoNode result = serviceDiscoveryManager.discoverInformation(JULIET);
Assert.assertNotNull(result);
Assert.assertTrue(result.getFeatures().size() > 1);
// Every entity MUST have at least one identity
Assert.assertTrue(result.getIdentities().size() > 0);