    @Test
    public void testNonInitializingExecutor() {

        Throwable caught = catchThrowable(() -> {
            executor.afterPropertiesSet();
            verify(task, never()).afterPropertiesSet();
        });
        assertThat(caught).isNull();
    }