I\'ve following code snippet in my unit test,
ClassToBeMocked mock = createMock(ClassToBeMocked.class); //I\'ve statically imported EasyMock.*
mock.callMetho
This will happen if you are mocking a class with a 'final' method. EasyMock does not override a final method. If you cannot mock an interface, and you cannot change the method to non-final, you can use PowerMock along with EasyMock to get around this limitation. That specific use case is described here.