Look at `system_authorized_test.rb` -- that's what it is doing where it is still applicable.