In a Grails app, how can I mock an authenticated user so that I can write integration tests for controller actions, which are protected by Acegi?
For example, let's say I have a blog application, and the /post/save action is restricted to ROLE_AUTHOR. What might an integration test for this action look like?