This error is the result of trying to mock a class instead of an interface. In order to mock a class you have to use the class extensions instead.
So, change your code from:
import static org.easymock.EasyMock.*;
To:
import static org.easymock.classextension.EasyMock.*;
I think it’s just historically how EasyMock got developed:
