Method spy