Found very interesting issue and after debugging found the scenario to reproduce it.
So, if I have a class with package scope B that has some public method and publi
edit
Latest mockito 2.x beta use now ByteBuddy which isn't affected by this issue. There may be some API ajustements left but it is pretty much both working and functional. Also there will be breaking compatibility with existing mockito matchers. If that's ok for the project that would be great to have feedback on the API while mockito 2 is in beta.
original
There's a known issue when the mocked class have a non public parent. The method cannot be stubbed. See issue 212.
The issue is that bridge methods are generated by the compiler in order to access the method from the parent, however this confuses bytecode tools like CGLIB. Unless you can fix CGLIB, there's no real solution.
Sorry you have to workaround this in a different way :/