assertEquals(0, pool.getAvailable());
assertNull(pool.get());
}
public void testPoolSizeIsConstant() {
final Pool pool = new Pool(Identifiable.class, new NoOperationResetter(), getFactory());
pool.add(createIdentifiables(3));
assertEquals(3, pool.size());
Object obj1 = pool.get();
assertEquals(3, pool.size());
Object obj2 = pool.get();