**/
public void testDisconnectConnectSendTwo() throws Exception {
final Promise msgPromise=new Promise();
Channel coordinator=createChannel("A");
coordinator.connect("testgroup");
PullPushAdapter ppa=
new PullPushAdapter(coordinator,
new PromisedMessageListener(msgPromise));
ppa.start();
channel=createChannel("A");
channel.connect("testgroup1");
channel.disconnect();
channel.connect("testgroup");
channel.send(new Message(null, null, "payload"));
Message msg=(Message)msgPromise.getResult(20000);
assertTrue(msg != null);
assertEquals("payload", msg.getObject());
ppa.stop();
coordinator.close();
channel.close();
System.out.println("Remaining threads are:");
Util.printThreads();
}