pp.blockingTimeout = 10000;
pp.idleTimeout = 0;
pp.prefill = true;
pp.backgroundInterval = 1 * 1000 * 30;
ManagedConnectionPool mcp = new JBossManagedConnectionPool.OnePool(mcf, pp, false, log);
NoTxConnectionManager noTxn = new NoTxConnectionManager(null, mcp);
mcp.setConnectionListenerFactory(noTxn);
((PreFillPoolSupport)mcp).prefill();
//Let prefiller run
Thread.sleep(5000);
ConnectionListener cl = noTxn.getManagedConnection(null, null);
noTxn.returnManagedConnection(cl, false);
assertTrue(mcp.getConnectionDestroyedCount() == 0);
}