mockConnection.close();
expectLastCall().once();
reset(this.mockPool, this.mockConfig);
Map<Connection, Reference<ConnectionHandle>> refs = new HashMap<Connection, Reference<ConnectionHandle>>();
expect(this.mockPool.getFinalizableRefs()).andReturn(refs).anyTimes();
FinalizableReferenceQueue finalizableRefQueue = new FinalizableReferenceQueue();
expect(this.mockPool.getFinalizableRefQueue()).andReturn(finalizableRefQueue).anyTimes();
expect(mockConnectionHandle.getPool()).andReturn(this.mockPool).anyTimes();
expect(this.mockPool.getConfig()).andReturn(mockConfig).anyTimes();
expect(mockConfig.getPoolName()).andReturn("foo").once();
makeThreadSafe(this.mockPool, true);