@Test
 public void forEachWithIndex() {
   int[] indexSum = new int[1];
   MutableList<String> result = Lists.mutable.of();
   MutableSet<String> source = Sets.fixedSize.of("1", "2", "3", "4");
   source.forEachWithIndex(
       (each, index) -> {
         result.add(each);
         indexSum[0] += index;
       });
   Assert.assertEquals(FastList.newListWith("1", "2", "3", "4"), result);
   Assert.assertEquals(6, indexSum[0]);
 }