@Test
public void testManager() {
MockServer mockServer = new MockServer();
XmppSession xmppSession1 = new TestXmppSession(ROMEO, mockServer);
XmppSession xmppSession2 = new TestXmppSession(JULIET, mockServer);
MessageDeliveryReceiptsManager messageDeliveryReceiptsManager1 = xmppSession1.getExtensionManager(MessageDeliveryReceiptsManager.class);
// Test if the manager is disabled by default.
Assert.assertFalse(messageDeliveryReceiptsManager1.isEnabled());
messageDeliveryReceiptsManager1.setEnabled(true);
MessageDeliveryReceiptsManager messageDeliveryReceiptsManager2 = xmppSession2.getExtensionManager(MessageDeliveryReceiptsManager.class);
messageDeliveryReceiptsManager2.setEnabled(true);
final boolean[] messageReceived = {false};
final String[] receivedId = {null};
messageDeliveryReceiptsManager1.setEnabled(true);