ServerManagement.start("all", 0);
ServerManagement.start(0, "all");
   public void testJoinNotification() throws Exception   {      ClusterEventNotificationListener listener = new ClusterEventNotificationListener();      ObjectName postOfficeObjectName = new ObjectName("jboss.messaging:service=PostOffice");      try      {         ServerManagement.start("all", 0);         log.info("Server 0 started");         ServerManagement.addNotificationListener(0, postOfficeObjectName, listener);         log.info("NotificationListener added to server 0");         ServerManagement.start("all", 1);         log.info("Blocking to receive notification ...");         if (!listener.viewChanged(120000))         {            fail("Did not receive view change!");         }         Set view = ServerManagement.getServer(1).getNodeIDView();         assertEquals(2, view.size());         assertTrue(view.contains(new Integer(0)));         assertTrue(view.contains(new Integer(1)));      }      finally      {         ServerManagement.removeNotificationListener(0, postOfficeObjectName, listener);         ServerManagement.stop(1);         ServerManagement.stop(0);      }   }