void () { List<Integer> list = new SmartList<>(1); checkForEach(list); assertThat(list).isEqualTo(new SmartList<>(1)); assertThat(list).isEqualTo(new ArrayList<>(Arrays.asList(1))); assertThat(list).isEqualTo(new LinkedList<>(Arrays.asList(1))); assertThat(list).isEqualTo(Arrays.asList(1)); assertThat(list).isEqualTo(Collections.singletonList(1)); assertThat(list).isNotEqualTo(new SmartList<>()); assertThat(list).isNotEqualTo(new ArrayList<>()); assertThat(list).isNotEqualTo(new LinkedList<>()); assertThat(list).isNotEqualTo(Collections.emptyList()); assertThat(list).isNotEqualTo(Arrays.asList()); assertThat(list).isNotEqualTo(ContainerUtil.emptyList()); }