/**
  * @param EiTestSet $testSet
  * @param EiTestSetBlockParam $parent
  * @return int
  */
 public function getCountMappingFromTestSetJdd($testSet, $parent = null)
 {
     $count = 0;
     $mapId = $this->getEiDatasetStructureId();
     $testSetDS = $testSet->getFilteredEiTestSetDataSet($mapId);
     $nb = $testSetDS->count();
     if ($nb > 0) {
         $contexteBlock = $parent != null ? $parent->getBlockContext() : "";
         /** @var EiTestSetDataSet $line */
         foreach ($testSetDS as $line) {
             // TODO: Améliorer
             $contexteJdd = $line->getContext();
             if ($contexteJdd == $contexteBlock) {
                 $count++;
             }
         }
     }
     return $count;
 }