Fix for intermitent test failure at: testOneProducerManyConsumersManyMessages(org.apache.activemq.broker.policy.RoundRobinDispatchPolicyTest) It was checking that messages were evenly distributed accross consumers but that can only be garanteed when the consumer prefetches can hold all the published messages.