PagingFilteredQueue queue2 = new PagingFilteredQueue("queue2", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);
PagingFilteredQueue queue2 = new PagingFilteredQueue("queue2", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);
   public final void testListBindings() throws Throwable   {      PostOffice office = null;            try      {               office = createPostOffice();                  PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);                  Binding binding1 =            office.bindQueue("condition1", queue1);                  PagingFilteredQueue queue2 = new PagingFilteredQueue("queue2", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);                           Binding binding2 =            office.bindQueue("condition1", queue2);                  PagingFilteredQueue queue3 = new PagingFilteredQueue("queue3", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);                           Binding binding3 =            office.bindQueue("condition1", queue3);                  PagingFilteredQueue queue4 = new PagingFilteredQueue("queue4", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);                           Binding binding4 =            office.bindQueue("condition1", queue4);                  PagingFilteredQueue queue5 = new PagingFilteredQueue("queue5", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);                           Binding binding5 =            office.bindQueue("condition2", queue5);                  PagingFilteredQueue queue6 = new PagingFilteredQueue("queue6", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);                           Binding binding6 =            office.bindQueue("condition2", queue6);                  PagingFilteredQueue queue7 = new PagingFilteredQueue("queue7", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);                           Binding binding7 =            office.bindQueue("condition2", queue7);                  PagingFilteredQueue queue8 = new PagingFilteredQueue("queue8", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null);                           Binding binding8 =            office.bindQueue("condition2", queue8);                           Collection bindings = office.listBindingsForCondition("dummy");         assertNotNull(bindings);         assertTrue(bindings.isEmpty());                  //We don't match on substrings         bindings = office.listBindingsForCondition("condition123");         assertNotNull(bindings);         assertTrue(bindings.isEmpty());                  //We don't currently support hierarchies         bindings = office.listBindingsForCondition("condition1.subcondition");         assertNotNull(bindings);         assertTrue(bindings.isEmpty());                  //We currently just do an exact match         bindings = office.listBindingsForCondition("condition1");         assertNotNull(bindings);         assertEquals(4, bindings.size());                  Iterator iter = bindings.iterator();         assertEquivalent((Binding)iter.next(), binding1);         assertEquivalent((Binding)iter.next(), binding2);         assertEquivalent((Binding)iter.next(), binding3);         assertEquivalent((Binding)iter.next(), binding4);                  bindings = office.listBindingsForCondition("condition2");         assertNotNull(bindings);         assertEquals(4, bindings.size());                  iter = bindings.iterator();         assertEquivalent((Binding)iter.next(), binding5);         assertEquivalent((Binding)iter.next(), binding6);         assertEquivalent((Binding)iter.next(), binding7);         assertEquivalent((Binding)iter.next(), binding8);      }      finally      {         if (office != null)         {            office.stop();         }      }            }