/** indexOf gives the index for the given object */ public void testIndexOf() { List full = populatedArray(3); assertEquals(1, full.indexOf(one)); assertEquals(-1, full.indexOf("puppies")); }