Moving method_of_mock inside since only the AT_LEAST_ONCE verification needs it