For me the issue were the multithreaded tests that were doing stubbing/verification on a shared mocks. It leaded to randomly throwing WrongTypeOfReturnValue
exception.
This is not properly written test using Mockito. Mocks should not be accessed from multiple threads.
The solution was to make mocks local to each test.