assertEquals("list is " + list, 3, list.size());
assertTrue(list.contains(1) && list.contains(2) && list.contains(3));
}
public void testRegularAndOOBUnicasts2() throws Exception {
DISCARD discard=new DISCARD();
ProtocolStack stack=c1.getProtocolStack();
stack.insertProtocol(discard, ProtocolStack.BELOW, UNICAST.class);
Address dest=c2.getLocalAddress();
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);
m3.setFlag(Message.OOB);
Message m4=new Message(dest, null, 4);
MyReceiver receiver=new MyReceiver();
c2.setReceiver(receiver);
c1.send(m1);
discard.setDropDownUnicasts(1);
c1.send(m3);
discard.setDropDownUnicasts(1);
c1.send(m2);
c1.send(m4);
Util.sleep(1000); // time for potential retransmission