class ManagedExecutors {

    public static Runnable managedTask(Runnable task, ManagedTaskListener taskListener)
        throws IllegalArgumentException {
        return managedTask(task, null, taskListener);
    }

}

class ManagedExecutorsTest {

    @Test (expected = IllegalArgumentException.class)
    public void testManagedTask_null_Runnable_task_2() {

        Runnable task = null;
        ManagedExecutors.managedTask(task, new HashMap<String, String>(), new ManagedTaskListenerImpl());
    }

}