pp.maxSize = 2;
pp.blockingTimeout = 10000;
pp.idleTimeout = 0;
pp.prefill = false;
pp.backgroundInterval = 2000;
ManagedConnectionPool mcp = new JBossManagedConnectionPool.OnePool(mcf, pp, false, log);
NoTxConnectionManager noTxn = new NoTxConnectionManager(null, mcp);
mcp.setConnectionListenerFactory(noTxn);
ConnectionListener cl = noTxn.getManagedConnection(null, null);
noTxn.returnManagedConnection(cl, false);
Thread.sleep(pp.backgroundInterval);
assertTrue(mcp.getConnectionDestroyedCount() == 0);
}