assertEquals(3, listeners.size());
assertEquals(4, listeners.size());
   public void testRemotingInternals() throws Exception   {      if (ServerManagement.isRemote()) return;            Connector serverConnector = ServerManagement.getConnector();      ServerInvoker serverInvoker = serverConnector.getServerInvoker();      JMSServerInvocationHandler invocationHandler =            (JMSServerInvocationHandler)serverInvoker.getInvocationHandler("JMS");      Collection listeners = invocationHandler.getListeners();      assertEquals(2, listeners.size());  // topicConsumer's and queueConsumer's      MessageConsumer c = consumerSession.createConsumer(queue);      listeners = invocationHandler.getListeners();      assertEquals(3, listeners.size());      c.close();      listeners = invocationHandler.getListeners();      assertEquals(2, listeners.size());   }