Assert.assertEquals(0, array.size());
array.addAll(0, Arrays.asList(1, 2, 3));
Assert.assertEquals(3, array.size());
array.clear();
array.addAll(0, Arrays.asList(1, 2, 3));
Assert.assertEquals(true, array.retainAll(Arrays.asList(1, 2)));
Assert.assertEquals(2, array.size());
Assert.assertEquals(true, array.retainAll(Arrays.asList(2, 4)));
Assert.assertEquals(1, array.size());
array.set(0, 4);
Assert.assertEquals(4, array.toArray()[0]);