I am trying to use Mockito in my Android project. I have found very nice tutorial that deals with it: http://www.paulbutcher.com/2012/05/mockito-on-android-step-by-step/
You can add the mockito core as a dependency instead. Then, that error will not happen and you won't need a workaround.
dependencies { ... testCompile 'org.mockito:mockito-core:1.10.19' }