public void testRpc() throws Exception {
rpcTest = true;
List tmpList = (List) packets.clone();
for (int i = 0; i < TEST_SIZE; i++) {
Packet packet = (Packet) tmpList.get(i);
Receipt receipt = sender.send(packet, 4000);
assertTrue("Receipt should not be null!", receipt != null);
System.out.println("Got receipt: " + receipt + " for packet: " + packet);
}