initialize("generator.COUNT", 10);
initialize("out.COLLECTION", out);
}
});
ComponentHandlingTimes times = new ComponentHandlingTimes(network.components().size());
network.addPacketListener(times);
network.runInCurrentThread();
Assert.assertEquals(times.getPacketCount(1), 11); // Initialization packet and the other 10
}