collection.add("Item 2");
collection.add("Item 3");
collection.add("Item 4");
collection.add("Item 5");
IteratorTemplate template = new IteratorTemplate(collection);
assertTrue(template.anyTrue(new Constraint() {
public boolean test(Object o) {
return ((String)o).startsWith("Item 5");
}
}));
assertEquals(false, template.anyTrue(new Constraint() {