Finally dealt with transitive dependencies and Mockito.