EasyMock utilize several methods to configure a Mock object. The expect() method tells EasyMock to simulate a method with certain arguments. The andReturn() method defines the return value of this method for the specified method parameters. The times() method defines how often the Mock object will be called.
// setup the mock object
// Setup is finished need to activate the mock