On Mon, 2007-08-20 at 20:26 -0500, Justin Perkins wrote: > How can I safely mock a singleton without the mocked method living on > outside the scope of the test method? This is how I did it: http://jonathanleighton.com/blog/testing-singleton-classes