public static void executeWithRetry(RetryFunction function) throws Exception {
    executeWithRetry(maxAttempts, minDelay, function);
  }
@Test
  public void retryFunctionThatRecovers() throws Exception {
    startTimeMeasure = System.currentTimeMillis();
    executeWithRetry(IOITHelperTest::recoveringFunction);
    assertEquals(1, listOfExceptionsThrown.size());
  }