### Question:
Wait { public static Waiter atMost(long duration, TimeUnit unit) { return new Waiter().atMost(duration, unit); }  static Waiter atMost(long duration, TimeUnit unit); static Waiter checkEvery(long duration, TimeUnit unit); static Waiter prompt(boolean prompt); static boolean until(WaitCheck check);  }### Answer:
@Test void atMost() { long startTime = System.currentTimeMillis(); assertThat(Wait.atMost(1, TimeUnit.SECONDS) .checkEvery(100, TimeUnit.MILLISECONDS) .prompt(false) .until(() -> false)).isFalse(); assertThat(System.currentTimeMillis() - startTime) .isGreaterThanOrEqualTo(TimeUnit.SECONDS.toMillis(1)); }