Added mockito, and some java unit tests