@Test
public void testGetConnectionConnectionQueueStarved()
throws NoSuchFieldException, IllegalAccessException,
InterruptedException, SQLException {

	reset(mockPartition, mockConnectionHandles, mockConnection);
	expect(mockPartition.isUnableToCreateMoreTransactions()).andReturn(true).once();
	expect(mockPartition.getFreeConnections()).andReturn(mockConnectionHandles).anyTimes();
	expect(mockConnectionHandles.poll(Long.MAX_VALUE, TimeUnit.MILLISECONDS)).andReturn(mockConnection).once();
	mockConnection.renewConnection();
	expectLastCall().once();
	replay(mockPartition, mockConnectionHandles, mockConnection);
	assertEquals(mockConnection, testClass.getConnection());
	verify(mockPartition, mockConnectionHandles, mockConnection);
}