@Test
public void defaultConfig() throws Exception {

    Retry retry = new Retry();
    JsonNode configuration = retry.getConfiguration();
    assertEquals(0, configuration.get("maxRetries").intValue());
    assertEquals(1000, configuration.get("initialDelay").intValue());
    assertEquals(5000, configuration.get("maxDelay").intValue());
    assertEquals(1.0, configuration.get("backoffFactor").doubleValue(), 0.001);
}