CircuitBreakerBuilder { public CircuitBreakerBuilder trialRequestInterval(Duration trialRequestInterval) { requireNonNull(trialRequestInterval, "trialRequestInterval"); if (trialRequestInterval.isNegative() || trialRequestInterval.isZero()) { throw new IllegalArgumentException( "trialRequestInterval: " + trialRequestInterval + " (expected: > 0)"); } this.trialRequestInterval = trialRequestInterval; return this; } CircuitBreakerBuilder(String name);   CircuitBreakerBuilder(); CircuitBreakerBuilder failureRateThreshold(double failureRateThreshold); CircuitBreakerBuilder minimumRequestThreshold(long minimumRequestThreshold); CircuitBreakerBuilder trialRequestInterval(Duration trialRequestInterval); CircuitBreakerBuilder trialRequestIntervalMillis(long trialRequestIntervalMillis); CircuitBreakerBuilder circuitOpenWindow(Duration circuitOpenWindow); CircuitBreakerBuilder circuitOpenWindowMillis(long circuitOpenWindowMillis); CircuitBreakerBuilder counterSlidingWindow(Duration counterSlidingWindow); CircuitBreakerBuilder counterSlidingWindowMillis(long counterSlidingWindowMillis); CircuitBreakerBuilder counterUpdateInterval(Duration counterUpdateInterval); CircuitBreakerBuilder counterUpdateIntervalMillis(long counterUpdateIntervalMillis); CircuitBreakerBuilder listener(CircuitBreakerListener listener); CircuitBreaker build();  }
@Test void testTrialRequestInterval() { final CircuitBreakerConfig config = confOf(builder().trialRequestInterval(oneSecond).build()); assertThat(config.trialRequestInterval()).isEqualTo(oneSecond); }