public static Executor scopeToJob(JobID jobID, Executor executor) {
        checkArgument(!(executor instanceof MdcAwareExecutor));
        return new MdcAwareExecutor<>(executor, asContextData(jobID));
    }
@Test
    void testScopeExecutor() throws Exception {
        assertJobIDLogged(
                jobID ->
                        MdcUtils.scopeToJob(jobID, Executors.directExecutor())
                                .execute(LOGGING_RUNNABLE));
    }