I\'m trying to mock up some mongo classes so that I don\'t need a connection (fairly standard stuff) but the following code gives me problems:
when(dbCollect
Probably unrelated, but I encountered the same error when I spied a package private method. Changing it to public solved the issue for me.