With Rhino Mocks how to stub a method that makes use of the params keyword?
===

I am attempting to setup an expectation on a repository. The method makes use of the [params keyword][1]:

    string GetById(int key, params string[] args);

The expectation I have setup:

    var resourceRepo = MockRepository.GenerateMock<IResourceRepository>();
    resourceRepo.Expect(r => r.GetById(
        Arg<int>.Is.Equal(123),
        Arg<string>.Is.Equal("Name"),
        Arg<string>.Is.Equal("Super"),
        Arg<string>.Is.Equal("Mario"),
        Arg<string>.Is.Equal("No"),
        Arg<string>.Is.Equal("Yes"),
        Arg<string>.Is.Equal("Maybe")))
        .Return(String.Empty);

throws this exception:

> Test method
> XYZ threw exception:  System.InvalidOperationException:
> Use Arg<T> ONLY within a mock method call while recording. 2 arguments expected, 7
> have been defined.

What is wrong with the setup of my expectation?

  [1]: http://msdn.microsoft.com/en-us/library/w5zay9db%28v=vs.100%29.aspx