I\'m using EasyMock(version 2.4) and TestNG for writing UnitTest.
I have a following scenario and I cannot change the way class hierarchy is defined.
I\'m testin
For me, this exception was occurring because the method I was trying to stub was final (something I hadn't realized).
final
If you want to stub a final method you'll need to use Powermock.