// Public --------------------------------------------------------
public void testMessageRedistributionAmongNodes() throws Exception
{
// start servers with redistribution policies that actually do something
ServiceAttributeOverrides attrOverrides = new ServiceAttributeOverrides();
ObjectName postOfficeObjectName = new ObjectName("jboss.messaging:service=PostOffice");
attrOverrides.
put(postOfficeObjectName, "MessagePullPolicy",
"org.jboss.messaging.core.plugin.postoffice.cluster.DefaultMessagePullPolicy");
attrOverrides.put(postOfficeObjectName, "StatsSendPeriod", new Long(1000));
ServerManagement.start(0, "all", attrOverrides, true);
ServerManagement.start(1, "all", attrOverrides, false);
ServerManagement.deployQueue("testDistributedQueue", 0);