super.tearDown();
}
public void test1() throws Exception
{
MessagePullPolicy policy = new DefaultMessagePullPolicy();
List queues = new ArrayList();
ClusteredQueue queue1 = new DummyClusteredQueue(true, "queue1", 1000);
queues.add(queue1);
ClusteredQueue queue2 = new DummyClusteredQueue(false, "queue2", 435);
queues.add(queue2);
ClusteredQueue queue3 = new DummyClusteredQueue(false, "queue3", 12);
queues.add(queue3);
ClusteredQueue queue4 = new DummyClusteredQueue(false, "queue4", 900);
queues.add(queue4);
ClusteredQueue queue5 = new DummyClusteredQueue(false, "queue5", 0);
queues.add(queue5);
ClusteredQueue chosen = policy.chooseQueue(queues);
assertTrue(chosen == queue4);
}