Implement any_instance mocks with new RSpec syntax.