// Generate samples to reach the checkpoint
while (added.size() < checkpoint) {
long l = (long) (Math.random() * 1000);
added.add(l);
watch.addValue(l);
}
mon.waitFor(Math.min(collectionSize, checkpoint));
// Verify that the data has been added correctly
Calculable[] calcs = watch.getWatchDataSource().getCalculable();