@Test
public void force_shutdown_after_timeout() throws InterruptedException {

  // given
  final ExecutorService service = mock(ExecutorService.class);
  when(service.awaitTermination(1, TimeUnit.MILLISECONDS)).thenReturn(false);
  // when
  this.executorServiceUtils.gracefulShutdown(service, Duration.ofMillis(1));
  // then
  verify(service).shutdown();
  verify(service).shutdownNow();
}