I'm switching some code written like this:
mock(foo).method("bar").anyArgs();
To code like this:
expect(foo.bar(arg(instanceOf(String))));
But doing an instanceOf(String) really isn't the same is it? How would you indicate that any argument is okay for the latter approach?