public static void executeWithRetries(
      final Function function,
      final RetryBehaviour retryBehaviour
  ) throws Exception {
    executeWithRetries(() -> {
      function.call();
      return null;
    }, retryBehaviour);
  }
@Test
  public void shouldReturnValue() throws Exception {
    // Given:
    final String expectedValue = "should return this";

    // When:
    final String result = ExecutorUtil.executeWithRetries(() -> expectedValue, ON_RETRYABLE);

    // Then:
    assertThat(result, is(expectedValue));
  }