### Question:
RecyclableArrayList extends ArrayList<T> { public void recycle() { clear(); if (handle != null) { handle.recycle(this); } } RecyclableArrayList(); private  RecyclableArrayList(Handle<RecyclableArrayList<T>> handle, int initialCapacity); void recycle(); @Override boolean equals(Object obj); @Override int hashCode();  }### Answer:
@Test public void testRecycle() { RecyclableArrayList<Integer> array = recycler.newInstance(); for (int i = 0; i < 5; i++) { array.add(i); } assertEquals(5, array.size()); array.recycle(); assertEquals(0, array.size()); }