@Test
public void asyncHealthCheckIsScheduledOnExecutor() {

    ArgumentCaptor<AsyncHealthCheckDecorator> decoratorCaptor = forClass(AsyncHealthCheckDecorator.class);
    verify(executorService).scheduleAtFixedRate(decoratorCaptor.capture(), eq(0L), eq(10L), eq(TimeUnit.SECONDS));
    assertThat(decoratorCaptor.getValue().getHealthCheck()).isEqualTo(ahc);
}