114115116117118119120121122123124
p.set(indexEnd, rand.nextLong()); } catch(Exception e) { assertTrue(e.getClass() == ArrayIndexOutOfBoundsException.class); } p.clear(); for(int i = indexStart; i < indexEnd; i++) { assertEquals(0, p.get(i)); } } }