void () { Condition<Integer> cond = integer -> integer > 2; assertIterating(Arrays.asList(1, 4, 2, 5), cond, 4, 5); assertIterating(Arrays.asList(1, 2), cond); assertIterating(Collections.emptyList(), cond); assertIterating(Collections.singletonList(4), cond, 4); }