@Test
public void testGetConnectionLimitsHit() throws SQLException {

	reset(mockPartition, mockConnectionHandles, mockConnection);
	expect(mockConfig.getPoolAvailabilityThreshold()).andReturn(0).anyTimes();
	expect(mockPartition.isUnableToCreateMoreTransactions()).andReturn(false).anyTimes();
	expect(mockPartition.getFreeConnections()).andReturn(mockConnectionHandles).anyTimes();
	expect(mockPartition.getMaxConnections()).andReturn(10).anyTimes();
	expect(mockPartition.getAvailableConnections()).andReturn(1).anyTimes();
	BlockingQueue<Object> bq = new ArrayBlockingQueue<Object>(1);
	bq.add(new Object());
	expect(mockPartition.getPoolWatchThreadSignalQueue()).andReturn(bq);
	//		mockPartition.almostFullSignal();
	//		expectLastCall().once();
	expect(mockConnectionHandles.poll()).andReturn(mockConnection).once();
	mockConnection.renewConnection();
	expectLastCall().once();
	replay(mockPartition, mockConnectionHandles, mockConnection);
	testClass.getConnection();
	verify(mockPartition, mockConnectionHandles, mockConnection);
}