@Test
public void gracefulShutdown() throws InterruptedException {

  // given
  final ExecutorService service = Executors.newSingleThreadExecutor();
  // when
  this.executorServiceUtils.gracefulShutdown(service, Duration.ofMillis(1));
  // then
  assertThat(service.isShutdown()).isTrue();
}