public function doMethodProperty(\org\equinox\ioc\BeanDefinition $bean, $methodName)
 {
     $beanProperty = new \org\equinox\ioc\ResourceSetterProperty();
     $beanProperty->setName($methodName);
     $beanProperty->setRef($this->getValue($bean, $methodName));
     $bean->addProperty($beanProperty);
 }
 private function getExpectedBean()
 {
     $bean = new \org\equinox\ioc\BeanDefinition();
     $bean->setId('Bean');
     $bean->setClassName('org\\equinox\\ioc\\componentScan\\package\\Bean');
     $bean->setScope(\org\equinox\ioc\BeanDefinition::SCOPE_SINGLETON);
     // variable Ressource
     $property = new \org\equinox\ioc\ResourceVariableProperty();
     $property->setName("dep");
     $property->setRef("dep");
     $bean->addProperty($property);
     // setter setDependancy()
     $setter = new \org\equinox\ioc\ResourceSetterProperty();
     $setter->setName("setDependancy");
     $setter->setRef('dep');
     $bean->addProperty($setter);
     return $bean;
 }