ElementGenerator finder = template.findAll(new Constraint() {
public boolean test(Object o) {
return ((String)o).startsWith("Item 4");
}
});
finder.run(new Block() {
protected void handle(Object o) {
assertEquals("Item 4", o);
}
});
finder = template.findAll(new Constraint() {