@Test
    public void testManagedTask_Runnable_ManagedTaskListener() {

        RunnableImpl task = new RunnableImpl();
        ManagedTaskListenerImpl taskListener = new ManagedTaskListenerImpl();
        
        Runnable wrapped = ManagedExecutors.managedTask(task, taskListener);
        ManagedTask managedTask = (ManagedTask) wrapped;
        assertTrue(taskListener == managedTask.getManagedTaskListener());

        wrapped.run();
        assertTrue(task.ran);
}