* bug, which used to leave pbcast.NAKACK in a broken state after
* DISCONNECT. Because of this problem, the channel couldn't be used to
* multicast messages.
**/
public void testDisconnectConnectSendTwo() throws Exception {
final Promise msgPromise=new Promise();
JChannel coordinator=new JChannel(props);
coordinator.connect("testgroup");
PullPushAdapter ppa=
new PullPushAdapter(coordinator,
new PromisedMessageListener(msgPromise));
ppa.start();
channel=new JChannel(props);
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();