void () { List<Integer> list = ContainerUtil.immutableList(0, 1, 2, 3, 4); List<Integer> subList = list.subList(1, 4); UsefulTestCase.assertOrderedEquals(subList, 1, 2, 3); List<Integer> subSubList = subList.subList(1, 2); UsefulTestCase.assertOrderedEquals(subSubList, 2); assertEquals(new ArrayList<>(subSubList), subSubList); }