@Test
public void testDestroyChannelDisconnectsClients() throws Exception
{
Property[] _p = new Property[0];
EventChannel _channel = getEventChannelFactory().create_channel(_p, _p, new IntHolder());
StructuredPushSender _pushSender = getPushSender();
StructuredPullSender _pullSender = new StructuredPullSender(setup.getClientOrb(), testEvent_);
StructuredPushReceiver _pushReceiver = new StructuredPushReceiver(setup.getClientOrb());
StructuredPullReceiver _pullReceiver = new StructuredPullReceiver(setup.getClientOrb());
_pushSender.connect(_channel, false);
_pullSender.connect(_channel, false);
_pushReceiver.connect(_channel, false);
_pullReceiver.connect(_channel, false);
assertTrue(_pushSender.isConnected());
assertTrue(_pullSender.isConnected());
assertTrue(_pushReceiver.isConnected());
assertTrue(_pullReceiver.isConnected());
_channel.destroy();
assertTrue(!_pushSender.isConnected());
assertTrue(!_pullSender.isConnected());
assertTrue(!_pushReceiver.isConnected());
assertTrue(!_pullReceiver.isConnected());