/**
  * @covers       CollectionType\Map\MapAbstract::getKeyOfValue
  * @covers       CollectionType\Map\MapAbstract::__construct
  * @covers       CollectionType\Common\KeyTypeTrait::validateValueForKeyType
  */
 public function testGetKeyOfValueForExistsKey()
 {
     $key = 'exists';
     $this->dummyKeyType->isValid($key)->willReturn(true);
     $value = 'value';
     $this->dummyValueType->isValid($value)->willReturn(true);
     $this->map->put($key, $value);
     $result = $this->map->getKeyOfValue($value);
     $this->assertEquals($key, $result);
 }