@Test
public void default_scheduler_has_setRemoveOnCancelPolicy_set_to_true() {

    // given
    ScheduledExecutorService defaultScheduler = new CircuitBreakerImpl<>().getDefaultScheduledExecutorService();
    // expect
    assertThat(defaultScheduler).isInstanceOf(ScheduledThreadPoolExecutor.class);
    assertThat(((ScheduledThreadPoolExecutor) defaultScheduler).getRemoveOnCancelPolicy()).isTrue();
}