Fixed most of the test
The biggest one still to fix is SessionManagerTestCase that I need to
understand more before fixing it, The other are specific thing on a
test by test basis.

The test have been fixed using mockito to test the functionality
instead of how the method achieve it and then hopefully avoid
non-updated test in futur. I plan on converting all test to mockito and
to remove the JMock dependancy soon.