@Test
public void customConfig() throws Exception {

    Retry retry = new Retry(15, 150, 1200, 1.2);
    JsonNode configuration = retry.getConfiguration();
    assertEquals(15, configuration.get("maxRetries").intValue());
    assertEquals(150, configuration.get("initialDelay").intValue());
    assertEquals(1200, configuration.get("maxDelay").intValue());
    assertEquals(1.2, configuration.get("backoffFactor").doubleValue(), 0.001);
}