Using mock endpoints to verify routing logic