/**
  * @expectedException HealthCareAbroad\InstitutionBundle\Exception\InstitutionPropertyException
  */
 public function testCreateInstitutionPropertyByNonExistentName()
 {
     $property = $this->service->createInstitutionPropertyByName('some_unknown_property_type');
 }
 /**
  * 
  * @param Institution $institution
  * @param unknown_type $propertyTypeName
  * @return InstitutionPropertyCustomFormType
  */
 public function buildFormByInstitutionPropertyTypeName(Institution $institution, $propertyTypeName)
 {
     $institutionProperty = $this->institutionPropertyService->createInstitutionPropertyByName($propertyTypeName, $institution);
     $formType = new InstitutionPropertyCustomFormType();
     return $this->formFactory->create($formType, $institutionProperty);
 }