assertFalse(queue5.isActive());
assertFalse(queue6.isActive());
assertTrue(queue3.isActive());
assertTrue(queue4.isActive());
Message msg1 = CoreMessageFactory.createCoreMessage(1);
MessageReference ref1 = ms.reference(msg1);
boolean routed = postOffice.route(ref1, new SimpleCondition("topic1"), null);
assertTrue(routed);
List msgs = receiver1.getMessages();
assertNotNull(msgs);
assertTrue(msgs.isEmpty());
msgs = receiver2.getMessages();
assertNotNull(msgs);
assertTrue(msgs.isEmpty());
msgs = receiver3.getMessages();
assertNotNull(msgs);
assertEquals(1, msgs.size());
Message msgRec = (Message)msgs.get(0);
assertTrue(msg1 == msgRec);
receiver3.acknowledge(msgRec, null);
msgs = queue3.browse();
assertNotNull(msgs);
assertTrue(msgs.isEmpty());
msgs = receiver4.getMessages();
assertNotNull(msgs);
assertTrue(msgs.isEmpty());
msgs = receiver5.getMessages();
assertNotNull(msgs);
assertTrue(msgs.isEmpty());
msgs = receiver6.getMessages();
assertNotNull(msgs);
assertTrue(msgs.isEmpty());
receiver3.clear();
Message msg2 = CoreMessageFactory.createCoreMessage(2);
MessageReference ref2 = ms.reference(msg2);
routed = postOffice.route(ref2, new SimpleCondition("topic2"), null);
assertTrue(routed);