PowerMock: mock out private static final variable, a concrete example
Disclaimer: After a lot of hunting around on various threads I have found an answer. It can be done, but the general concensus is that it is not very safe but seeing as how you are doing this ONLY IN UNIT TESTS, I think you accept those risks 🙂 The answer is not Mocking, since … Read more