It cares about the underlying methods (Visitor's Visit methods). Which means it actually attempts to perform behavior verification by relying on state ...which isn't correct/robust (as @jwChung discovered).