code: public static Action delay(final Integer delay) {
          return new Action(input -> {
              try {
                  Thread.sleep(delay);
              } catch (InterruptedException e) {
                  Thread.currentThread().interrupt();
              }
              return input;
          });
      }
docs: Sleeps so many milliseconds, emulating slow requests.