assert list.size() == 4 : "list is " + list;
assert list.contains(1) && list.contains(2) && list.contains(3) && list.contains(4);
}
public void testRegularAndOOBMulticasts() throws Exception {
DISCARD discard=new DISCARD();
ProtocolStack stack=c1.getProtocolStack();
stack.insertProtocol(discard, ProtocolStack.BELOW, NAKACK.class);
c1.setOpt(Channel.LOCAL, false);
Address dest=null; // send to all
Message m1=new Message(dest, null, 1);
Message m2=new Message(dest, null, 2);
m2.setFlag(Message.OOB);
Message m3=new Message(dest, null, 3);
MyReceiver receiver=new MyReceiver("C2");
c2.setReceiver(receiver);
c1.send(m1);
discard.setDropDownMulticasts(1);
c1.send(m2);
c1.send(m3);
Util.sleep(500);
Collection<Integer> list=receiver.getMsgs();