# File lib/rhc/rest/mock.rb, line 62
    def expect_authorization(with_auth)
      username, password = credentials_for(with_auth)
      lambda{ |r|
        !username || (r.headers['Authorization'] == "Basic #{["#{username}:#{password}"].pack('m').tr("\n", '')}")
      }
    end