Retry extends AbstractErrorHandlerLayer<JsonNode> { public static ObjectNode defaultConfig() { ObjectNode conf = JsonNodeFactory.instance.objectNode(); conf.put(MAX_RETRIES, 0); conf.put(INITIAL_DELAY, 1000); conf.put(MAX_DELAY, 5000); conf.put(BACKOFF_FACTOR, 1.0); return conf; } Retry();  Retry(int maxRetries, int initialDelay, int maxDelay,
			double backoffFactor); @Override void configure(JsonNode config); static ObjectNode defaultConfig(); @Override JsonNode getConfiguration(); static final String URI; }
@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); }