public function testCreateNewCommand()
 {
     $cmd = new Command(['echo', '"Hello World!"'], [Command::OPTION_CWD => '/tmp']);
     $this->assertEquals($cmd->getCommand(), 'echo "Hello World!"');
     $cmd->runBlocking();
     $this->assertTrue($cmd->hasExecutionResult());
     $newCmd = $cmd->createNewCommand();
     $this->assertEquals($newCmd->getCommand(), 'echo "Hello World!"');
     $this->assertFalse($newCmd->hasFuture());
     $this->assertEquals($newCmd->getCwdPath(), '/tmp');
 }