@Test
public void testGetTotalLeased() {

	expect(mockPartition.getCreatedConnections()).andReturn(5).anyTimes();
	expect(mockPartition.getFreeConnections()).andReturn(mockConnectionHandles).anyTimes();
	expect(mockPartition.getAvailableConnections()).andReturn(3).anyTimes();
	replay(mockPartition, mockConnectionHandles);
	ConnectionPartition cp = testClass.partitions[1]; 
	assertEquals(4, testClass.getTotalLeased());
	testClass.partitions[1] = null; // test safety
	assertEquals(2, testClass.getTotalLeased());
	verify(mockPartition, mockConnectionHandles);
}