// the pool should now be full.
assertEquals("No returned objects should have been destroyed yet.",0, destroyed.size());
// cause the pool to discard a returned object.
pool.returnObject(i3);
assertEquals("One object should have been destroyed.", 1, destroyed.size());
// check to see what object was destroyed
Integer d = (Integer)destroyed.get(0);
assertEquals("Destoryed objects should have the stalest object.", i0, d);