I\'ve seen a few questions out there regarding this but I can\'t seem to make sense of any of the answers for my particular problem.
I have a mock object, lets call
object1.toggleDisplay(); EasyMock.expectLastCall().times(5);
or if you import statically the EasyMock methods:
EasyMock
import static org.easymock.EasyMock.*; [...] object1.toggleDisplay(); expectLastCall().times(5);