/**
  * Tests if the correct hitch gets removed.
  */
 public function testRemoveHitchSpecific()
 {
     $hitch = array();
     $hitch['textnodeId'] = "55f5ab3708985c4b188b4577";
     $hitch['description'] = "Continue.";
     $hitch['status'] = Textnode::HITCH_STATUS_ACTIVE;
     $this->assertTrue($this->textnode->appendHitch($hitch));
     $this->assertEquals($this->textnode->getHitchCount(), 1);
     $hitch = array();
     $hitch['textnodeId'] = "55f5ab3708985c4b188b4578";
     $hitch['description'] = "More.";
     $hitch['status'] = Textnode::HITCH_STATUS_INACTIVE;
     $this->assertTrue($this->textnode->appendHitch($hitch));
     $this->assertEquals($this->textnode->getHitchCount(), 2);
     $hitch = array();
     $hitch['textnodeId'] = "55f5ab3708985c4b188b4579";
     $hitch['description'] = "Abort.";
     $hitch['status'] = Textnode::HITCH_STATUS_ACTIVE;
     $this->assertTrue($this->textnode->appendHitch($hitch));
     $this->assertEquals($this->textnode->getHitchCount(), 3);
     $this->assertTrue($this->textnode->removeHitch(1));
     $result = $this->textnode->getHitch(0);
     $this->assertFalse(is_null($result));
     $this->assertEquals($result['textnodeId'], "55f5ab3708985c4b188b4577");
     $this->assertEquals($result['description'], "Continue.");
     $this->assertEquals($result['status'], Textnode::HITCH_STATUS_ACTIVE);
     $result = $this->textnode->getHitch(1);
     $this->assertFalse(is_null($result));
     $this->assertEquals($result['textnodeId'], "55f5ab3708985c4b188b4579");
     $this->assertEquals($result['description'], "Abort.");
     $this->assertEquals($result['status'], Textnode::HITCH_STATUS_ACTIVE);
     $result = $this->textnode->getHitch(2);
     $this->assertTrue(is_null($result));
 }