@Test public void testForEachWithIndexWithFromToWithCommandoPatternOptimization() { MutableList<Integer> result2 = Lists.mutable.of(); // Requires list of 100+ elements to engage commando pattern optimization ArrayListAdapter.adapt(new ArrayList<>(Interval.oneTo(200))) .forEachWithIndex(99, 199, new AddToList(result2)); Verify.assertSize(101, result2); }