@Test
public void testInternalReleaseConnection() throws InterruptedException, SQLException {

	// Test #1: Test normal case where connection is considered to be not broken
	// should reset last connection use
	mockConnection.setConnectionLastUsedInMs(anyLong());
	expectLastCall().once();
	expect(mockConnection.getOriginatingPartition()).andReturn(mockPartition).anyTimes();
	expect(mockPartition.getFreeConnections()).andReturn(mockConnectionHandles).anyTimes();
	expect(mockPartition.getAvailableConnections()).andReturn(1).anyTimes();
	Connection mockRealConnection = EasyMock.createNiceMock(Connection.class);
	expect(mockConnection.getInternalConnection()).andReturn(mockRealConnection).anyTimes();

	//		expect(mockConnectionHandles.offer(mockConnection)).andReturn(false).anyTimes();
	expect(mockConnectionHandles.offer(mockConnection)).andReturn(true).once();
	replay(mockRealConnection, mockConnection,mockPartition, mockConnectionHandles);
	testClass.internalReleaseConnection(mockConnection);
	verify(mockConnection,mockPartition, mockConnectionHandles);
}