This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Another question, again regarding testing using MockFor or StubFor:
If I want to mock/stub a class like Calendar that has a static factory method to create instances of the class and also regular methods, I don't know how to return the mock/stub from the factory method.
Here is my code so far: