if (!ServerManagement.isRemote()) return;
   public void testClientCrash() throws Exception   {      if (!ServerManagement.isRemote()) return;             InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment());            ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory");            Queue queue = (Queue)ic.lookup("/queue/Queue");            CreateClientOnServerCommand command = new CreateClientOnServerCommand(cf, queue, true);            String remotingSessionId = (String)remoteServer.executeCommand(command);            ConnectionManager cm = localServer.getServerPeer().getConnectionManager();                  assertNotNull(cm.getConnection(remotingSessionId));            //Now we should have a client connection from the remote server to the local server            remoteServer.exit();              //Wait for connection resources to be cleared up      Thread.sleep(60000);                 //See if we still have a connection with this id      assertNull(cm.getConnection(remotingSessionId));               }