@Test
public void testDefaulPolicy() throws IOException, InterruptedException, TimeoutException {

  try (LogAssert expect = TestLoggers.sys().expect(PREDICATE_CLASS, Level.DEBUG, 2,
          LogMatchers.hasMessageWithPattern(
                  "Result java.lang.RuntimeException.* retrying org.spf4j.failsafe.RetryPolicyTest.*"))) {
    try {
      RetryPolicy.defaultPolicy().run(() -> {
        throw new RuntimeException();
      }, RuntimeException.class);
      Assert.fail();
    } catch (RuntimeException ex) {
      expect.assertObservation();
    }
  }
}