/**
  * @test
  */
 public function headsCommand()
 {
     $headsCmd = Factory::createHeads();
     $headsCmd->setTemplate('template');
     $headsCmd->setClosed(true);
     $headsCmd->setRev('startrev');
     $headsCmd->setTopo(true);
     $expected = 'hg heads --rev ' . escapeshellarg('startrev') . ' --topo --closed --template ' . escapeshellarg('template');
     $this->assertSame($expected, $headsCmd->asString());
 }