You can use
PowerMock to mock static methods. It just extends EasyMock just like EasyMock class extension does but adds some more functionality so that you can mock static methods, private methods, suppress static initializers, access private state, mock construction of new objects and many other things.