### Question:
Backoff { public static Stream<Long> constant(long startMs) { return Stream.iterate(startMs, lastMs -> startMs); }  static Stream<Long> constant(long startMs); static Stream<Long> exponential(long startMs,
                                           int multiplier,
                                           long maxMs); static Stream<Long> exponentialJittered(long startMs,
                                                   long maxMs); static Stream<Long> decorrelatedJittered(long startMs,
                                                    long maxMs); static Stream<Long> equalJittered(long startMs,
                                             long maxMs); static final Policy DEFAULT; }### Answer:
@Test public void testConstant() throws Exception { Stream<Long> backoffs = Backoff.constant(12345L).limit(10); Stream<Long> expectedBackoffs = LongStream.range(0L, 10L).mapToObj(i -> 12345L); assertStreamEquals(expectedBackoffs, backoffs); }