MULE-7840: Upgraded junit to 4.11. Changed mockito-all for core. Adjuste...

...d and fixed tests.
Yes, it's working. Hamcrest recommends using isA() instead of the deprecated is() but that had issues so I used that which is supposed to be the same. I didn't try typeCompatibleWith().