void () { List<Integer> list = new SmartList<>(1, null, 3); checkForEach(list); assertThat(list).isEqualTo(new SmartList<>(1, null, 3)); assertThat(list).isEqualTo(new ArrayList<>(Arrays.asList(1, null, 3))); assertThat(list).isEqualTo(new LinkedList<>(Arrays.asList(1, null, 3))); assertThat(list).isEqualTo(Arrays.asList(1, null, 3)); assertThat(list).isNotEqualTo(new SmartList<>(1, 2, 3)); assertThat(list).isNotEqualTo(new ArrayList<>(Arrays.asList(1, 2, 3))); assertThat(list).isNotEqualTo(new LinkedList<>(Arrays.asList(1, 2, 3))); assertThat(list).isNotEqualTo(Arrays.asList(1, 2, 3)); }