Some example code showing ways to test legacy code using powermock and some refactorings to get rid of powermock