Not sure how to with pure EasyMock, but consider using the PowerMock extensions to EasyMock.
It has a lot of cool functions for doing just what you need –
https://github.com/jayway/powermock/wiki/MockStatic
Not sure how to with pure EasyMock, but consider using the PowerMock extensions to EasyMock.
It has a lot of cool functions for doing just what you need –
https://github.com/jayway/powermock/wiki/MockStatic