@Test
public void testGetConnectionUncheckedExceptionTriggeredWhileWaiting()
throws NoSuchFieldException, IllegalAccessException {

	reset(mockPartition, mockConnectionHandles, mockConnection);
	expect(mockPartition.isUnableToCreateMoreTransactions()).andReturn(false).anyTimes();
	expect(mockPartition.getFreeConnections()).andReturn(mockConnectionHandles).anyTimes();
	expect(mockPartition.getMaxConnections()).andReturn(0).anyTimes(); // cause a division by zero error
	replay(mockPartition, mockConnectionHandles, mockConnection, mockLock);
	try{
		testClass.getConnection();
		fail("Should have thrown an exception");
	} catch (Throwable t){
		// do nothing
	}
	verify(mockPartition, mockConnectionHandles, mockConnection, mockLock);
}