Peer peer = (Peer)channel;
   public void testJGroupsChannelNotConnected() throws Exception   {      Peer peer = (Peer)channel;      assertTrue(jchannel.isConnected());      jchannel.close();      try      {         peer.join();         fail("should throw DistributedException");      }      catch(DistributedException e)      {         //OK      }   }