SecondsDelayParser implements DelayParser { @Override public Duration parse(final String value) { if (isInteger(value)) { return Duration.ofSeconds(parseLong(value)); } return null; }  @Override Duration parse(final String value);  }
@Test void shouldParseSingleDigit() { assertEquals(Duration.ofSeconds(1), unit.parse("1")); }
@Test void shouldParseDoubleDigitDelay() { assertEquals(Duration.ofSeconds(17), unit.parse("17")); }
@Test void shouldIgnoreHttpDateDelay() { assertNull(unit.parse("Wed, 11 Apr 2018 22:34:28 GMT")); }
@Test void shouldIgnoreEmptyString() { assertNull(unit.parse("")); }