/** addAll throws an IndexOutOfBoundsException on a negative index */
 public void testAddAll1_IndexOutOfBoundsException() {
   try {
     List c = emptyArray();
     c.addAll(-1, new LinkedList());
     shouldThrow();
   } catch (IndexOutOfBoundsException e) {
   }
 }
 /** addAll adds each element from the given collection */
 public void testAddAll() {
   List full = populatedArray(3);
   Vector v = new Vector();
   v.add(three);
   v.add(four);
   v.add(five);
   full.addAll(v);
   assertEquals(6, full.size());
 }