pool.enableLogging( logger );
assertEquals( "1) Pool Ready Size", 0, pool.getReadySize() );
assertEquals( "1) Pool Size", 0, pool.getSize() );
Poolable p1 = pool.get();
assertEquals( "2) Pool Ready Size", 0, pool.getReadySize() );
assertEquals( "2) Pool Size", 1, pool.getSize() );
pool.put( p1 );
assertEquals( "3) Pool Ready Size", 1, pool.getReadySize() );
assertEquals( "3) Pool Size", 1, pool.getSize() );
Poolable p2 = pool.get();
assertEquals( "4) Pool Ready Size", 0, pool.getReadySize() );
assertEquals( "4) Pool Size", 1, pool.getSize() );
assertEquals( "Pooled Object reuse check", p1, p2 );