function testTaskLong()
{
$action = function () {
};
$deps = new \ArrayIterator(array('bar'));
$task = $this->application->task('foo', $deps, $action);
$this->assertTrue($this->application->taskDefined('foo'));
$this->assertEquals($deps, $task->prerequisites);
$this->assertEquals($action, $task->actions[0]);
}