@Test
public void testManagedTask_Callable_ManagedTask_null_args() {

    final String RESULT = "result";
    ManagedTaskListenerImpl TASK_LISTENER = new ManagedTaskListenerImpl();
    Map<String, String> EXEC_PROPERTIES = new HashMap<String, String>();
    EXEC_PROPERTIES.put("custom", "true");
    final String TASK_DESCRIPTION = "task1 description";
    ManagedTaskCallableImpl<String> task = new ManagedTaskCallableImpl(RESULT, TASK_DESCRIPTION, EXEC_PROPERTIES, TASK_LISTENER);
    
    Callable wrapped = ManagedExecutors.managedTask(task, null, null);
    ManagedTask managedTask = (ManagedTask) wrapped;
    assertTrue(TASK_LISTENER == managedTask.getManagedTaskListener());
    assertEquals("true", managedTask.getExecutionProperties().get("custom"));
}