void () { List<String> list = ContainerUtil.createLockFreeCopyOnWriteList(Arrays.asList("a", "b")); list.add("a"); assertEquals(3, list.size()); list.remove("a"); assertEquals(2, list.size()); list.remove("a"); assertEquals(1, list.size()); }