/**
  * Test set code.
  *
  * @return void
  *
  * @since  2.0
  */
 public function testSetHandler()
 {
     $this->instance->setHandler(function ($command) {
         return 221;
     });
     $this->assertInstanceOf('\\Closure', $this->instance->getRootCommand()->getHandler(), 'Code need to be a closure.');
     $this->assertEquals(221, $this->instance->getRootCommand()->setIO(new MockIO())->execute());
 }