public function testCreateEntityWithNameWithUndefinedClass() { $this->setExpectedException('InoPerunApi\\Entity\\Factory\\Exception\\EntityClassNotFoundException'); $this->factory->setBeanToEntityClassMappings(array('testBean' => 'UndefinedClass')); $this->factory->createEntityWithName('testBean'); }