Mock Static Method using JMockit 1. Overview Some popular mocking libraries such as Mockito and Easymock generate mock-ups by taking advantage of Java’s inheritance-based class model. EasyMock implements an interface at runtime, whereas Mockito inherits from the target class to create a mocking stub. Neither approach works well for static… Continue Reading jmockit-static-method