Assert.assertEquals(3, pool.getIdleConnectionCount());
}
@Test
public void testCloseOrReturnConnection() {
Host host = new Host("127.0.0.1", TestHostType.GOOD_FAST.ordinal());
ConnectionPoolConfiguration config = createConfig();
CountingConnectionPoolMonitor monitor = new CountingConnectionPoolMonitor();
SimpleHostConnectionPool<TestClient> pool = new SimpleHostConnectionPool<TestClient>(
host, new TestConnectionFactory(config, monitor), monitor,