Is it possible to mock the state of the current_user object in tests?

This same topic is also being discussed in this thread.