Convert spy to stub