Using PowerMock to Mock Static Methods
DRANK
Take a look at this tutorial demonstrating how PowerMock's ability to mock static methods can come in handy when you are unable to use dependency injections.