/**
  * Applies the change to the fingerprint
  *
  * @param Fingerprint $fingerprint
  */
 private function updateFingerprint(Fingerprint $fingerprint)
 {
     if ($this->label === null) {
         $fingerprint->removeLabel($this->languageCode);
     } else {
         $fingerprint->getLabels()->setTextForLanguage($this->languageCode, $this->label);
     }
 }
 /**
  * @expectedException OutOfBoundsException
  */
 public function testRemoveLabelMakesGetterThrowException()
 {
     $this->fingerprint->removeLabel('en');
     $this->fingerprint->getLabel('en');
 }