title: How can I unit test an object that requires an API authorization token?
body: <p>I'm trying to write a unit test for an object that communicates with a web service via an authorization token. What's the best way to test for both a "good" token and a "bad" token? I'd prefer not to embed a valid token in the test source itself, as I am planning on publicly releasing the code and I don't want my auth tokens floating around.</p>