@Override
    public long getCompletedTaskCount() {
        return executedCount;
    }
@Test
    public void getCompletedTaskCount_whenTasksSubmitted() {
        final int taskCount = 10;
        final ManagedExecutorService executorService = newManagedExecutorService();

        for (int i = 0; i < taskCount; i++) {
            executeNopTask(executorService);
        }

        assertTrueEventually(() -> assertEquals(taskCount, executorService.getCompletedTaskCount()));
    }