public void expire() {
      final TimeoutException timeoutException =
          new TimeoutException(
              "Mocked timeout after " + timeout.toMillis() + " " + TimeUnit.MILLISECONDS);
      promise.completeExceptionally(timeoutException);
    }
Create a timeout policy that timeouts x times

@param times the number of timeouts
@return the timeout policy
testutil/src/main/java/org/hyperledger/besu/testutil/DeterministicEthScheduler.java