assertTrue("1: InternalManagedConnectionPool", cl.getContext() instanceof InternalManagedConnectionPool);
InternalManagedConnectionPool imcp = (InternalManagedConnectionPool)cl.getContext();
cm.returnManagedConnection(cl, true);
// Shutdown the pool in order to trigger the RetryableResourceException
imcp.shutdown();
// Get a connection - new internal managed pool is created
cl = cm.getManagedConnection(null, null);
assertTrue("2: Got a null connection!", cl.getManagedConnection() != null);
cm.returnManagedConnection(cl, true);