Adds a method to stub any instance of a class.