### Question:
RetryPolicies { public static SimpleRetryPolicy.Builder repeat(int retries) { return SimpleRetryPolicy.builder().retries(retries); } private  RetryPolicies(); static SimpleRetryPolicy.Builder repeat(int retries); static RetryPolicy justCall();  }### Answer:
@Test public void repeat() throws Exception { CountDownLatch loadLatch = new CountDownLatch(3); NodeConfigSource source = TestingSource.builder() .retryPolicy(RetryPolicies.repeat(2) .delay(Duration.ZERO)) .loadLatch(loadLatch) .dataSupplier(() -> { throw new RuntimeException(); }) .build(); BuilderImpl.ConfigContextImpl context = Mockito.mock(BuilderImpl.ConfigContextImpl.class); ConfigSourceRuntimeImpl csr = new ConfigSourceRuntimeImpl(context, source); assertThrows(ConfigException.class, csr::load); assertThat(loadLatch.await(50, TimeUnit.MILLISECONDS), is(true)); }