@Test
public void testDestroyAdminDisconnectsClients() throws Exception
{
IntHolder _id = new IntHolder();
EventChannel _channel = getEventChannelFactory().create_channel(new Property[0],
new Property[0], _id);
AnyPullReceiver _anyPullReceiver = new AnyPullReceiver(setup.getClientOrb());
_anyPullReceiver.connect(_channel, false);
AnyPushReceiver _anyPushReceiver = new AnyPushReceiver(setup.getClientOrb());
_anyPushReceiver.connect(_channel, false);
AnyPullSender _anyPullSender = new AnyPullSender(setup.getClientOrb(), testPerson_);
_anyPullSender.connect(_channel, false);
AnyPushSender _anyPushSender = new AnyPushSender(setup.getClientOrb(), testPerson_);
_anyPushSender.connect(_channel, false);
assertTrue(_anyPullReceiver.isConnected());
assertTrue(_anyPushReceiver.isConnected());
assertTrue(_anyPullSender.isConnected());
assertTrue(_anyPushSender.isConnected());
_anyPullReceiver.myAdmin_.destroy();
_anyPushReceiver.myAdmin_.destroy();
_anyPullSender.myAdmin_.destroy();
_anyPushSender.myAdmin_.destroy();
assertTrue(!_anyPullReceiver.isConnected());
assertTrue(!_anyPushReceiver.isConnected());
assertTrue(!_anyPullSender.isConnected());
assertTrue(!_anyPushSender.isConnected());
_channel.destroy();
}