public function setup()
 {
     $this->metadata = new ClassMetadata(Mapped::class);
     $reflService = new RuntimeReflectionService();
     $this->metadata->initializeReflection($reflService);
     $this->metadata->mapRid('rid');
     $this->metadata->mapField(['fieldName' => 'field', 'name' => 'field', 'type' => 'string']);
     $this->metadata->mapLink(['fieldName' => 'assoc', 'name' => 'assoc']);
     $this->metadata->mapLinkSet(['fieldName' => 'multiassoc', 'name' => 'multiassoc']);
     $this->metadata->wakeupReflection($reflService);
 }