// The router has multiple non local queues with consumers and one local queue
public void testRouterMultipleNonLocalOneLocal() throws Exception
{
DefaultRouter dr = new DefaultRouter();
ClusteredQueue remote1 = new SimpleQueue(false);
SimpleReceiver receiver1 = new SimpleReceiver("blah", SimpleReceiver.ACCEPTING);
remote1.add(receiver1);
dr.add(remote1);
ClusteredQueue remote2 = new SimpleQueue(false);
SimpleReceiver receiver2 = new SimpleReceiver("blah", SimpleReceiver.ACCEPTING);
remote2.add(receiver2);
dr.add(remote2);
ClusteredQueue remote3 = new SimpleQueue(false);
SimpleReceiver receiver3 = new SimpleReceiver("blah", SimpleReceiver.ACCEPTING);
remote3.add(receiver3);
dr.add(remote3);
ClusteredQueue queue = new SimpleQueue(true);
SimpleReceiver receiver4 = new SimpleReceiver("blah", SimpleReceiver.ACCEPTING);
queue.add(receiver4);
dr.add(queue);
sendAndCheck(dr, receiver4);