public static void executeWithRetry(RetryFunction function) throws Exception {
    executeWithRetry(maxAttempts, minDelay, function);
  }
@Test
  public void retryFunctionThatWillFail() throws Exception {
    exceptionRule.expect(SQLException.class);
    exceptionRule.expectMessage("Problem with connection");
    executeWithRetry(IOITHelperTest::failingFunction);
    assertEquals(3, listOfExceptionsThrown.size());
  }