int numberOfMessages = 100;
for (int i = 0; i < numberOfMessages; i++) {
if (numberOfMessages % 2 == 0) {
node.broadcast(new Integer(i));
} else {
node2.broadcast(new Integer(i));
}
}
node2.shutdown();
assertEquals(100, receivedMessages.size());
for (int i = 0; i < numberOfMessages; i++) {