PowerMock and Static Method Stubbing
Up till now I have not come across that many projects that would truly conform to the principles of Test Driven Development. Once again, I found myself in an unenviable situation of introducing unit tests to a code which had been released to production a long time ago, completely untouched by any kind of test…