Added mockito dependency and use it in existing tests.