@Test
public void testGetTotalFree() {

	expect(mockPartition.getFreeConnections()).andReturn(mockConnectionHandles).anyTimes();
	expect(mockPartition.getAvailableConnections()).andReturn(3).anyTimes();
	// expect(mockConnectionHandles.size()).andReturn(3).anyTimes();
	replay(mockPartition, mockConnectionHandles);
	
	assertEquals(6, testClass.getTotalFree());
	testClass.partitions[1] = null; // test safety
	assertEquals(3, testClass.getTotalFree());
	verify(mockPartition, mockConnectionHandles);
}