collection.add("Item 3");
collection.add("Item 4");
collection.add("Item 5");
IteratorTemplate template = new IteratorTemplate(collection);
runUntilCounter = 0;
template.runUntil(new Block() {
protected void handle(Object o) {
runUntilCounter++;
}
}, new Constraint() {
public boolean test(Object o) {