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