### Question:
ResubscriptionConfig { public boolean isEnabled() { return !delay.isNegative(); } ResubscriptionConfig(Duration delay);  ResubscriptionConfig(String name, Duration delay); boolean isEnabled(); String getName(); Duration getDelay();  }### Answer:
@Test public void resubscriptionIsEnabledIfDelayIsNonNegative() { assertTrue(new ResubscriptionConfig(Duration.ofSeconds(1L)).isEnabled()); assertTrue(new ResubscriptionConfig(Duration.ofSeconds(0L)).isEnabled()); assertFalse(new ResubscriptionConfig(Duration.ofSeconds(-1L)).isEnabled()); assertFalse(new ResubscriptionConfig(Duration.parse("PT-1S")).isEnabled()); assertFalse(ResubscriptionConfig.Factory.disabled().create().isEnabled()); }