{
Collection mcs = new ArrayList(pp.maxSize);
for (int i = 0 ; i < pp.maxSize; i++)
mcs.add(cm.getManagedConnection(subject, cri));
for (Iterator i = mcs.iterator(); i.hasNext(); )
cm.returnManagedConnection((ConnectionListener)i.next(), false);
assertTrue("Wrong number of connections counted: " + cm.getConnectionCount(), cm.getConnectionCount() == pp.maxSize);
Thread.sleep(1500);
ConnectionListener cl = cm.getManagedConnection(subject, cri);
cm.returnManagedConnection(cl, false);