assertEquals(0, pool.getNumberOfCheckedInConnections());
}
@Test
public void testSocketClosedWhenCheckedInAfterPoolKeyClosed() throws Exception {
SocketAndStreams sas1 = pool.checkout(dest1);
SocketAndStreams sas2 = pool.checkout(dest1);
assertTrue(sas1 != sas2);
pool.checkin(dest1, sas1);
pool.close(dest1);
pool.checkin(dest1, sas2);
pool.close(dest1);