code: static Function<String, String> mostFrequent(int n, Clock clock) {
      return new MostFrequentLimiter(Math.min(n, MAX_LIMIT), clock);
    }
docs: Allows the clock to be specified for testing. See {@link #mostFrequent(int)} for
  details on the usage.