public function testApiGetDefinition_ThrowsException_ForNonExistingKey() { $test = $this->getTest(); $test->setExpectedException(IllegalFieldException::class); $factory = $this->createFactory(); $key = 'KEY'; $factory->getDefinition($key); }