public function testCreateLocator()
 {
     $annotation_manager = m::mock('\\mindplay\\annotations\\AnnotationManager');
     $search_context = m::mock('\\aik099\\QATools\\PageObject\\ISearchContext');
     $factory = new DefaultElementLocatorFactory($search_context, $annotation_manager);
     $property = m::mock(self::PROPERTY_CLASS);
     $property->shouldReceive('getAnnotationsFromPropertyOrClass')->with('@timeout')->once()->andReturn(array());
     $this->assertInstanceOf($this->locatorClass, $factory->createLocator($property));
 }
 /**
  * Create locator factory instance.
  *
  * @param ISearchContext    $search_context     Search context.
  * @param AnnotationManager $annotation_manager Annotation manager.
  * @param LocatorHelper     $locator_helper     Locator helper.
  */
 public function __construct(ISearchContext $search_context, AnnotationManager $annotation_manager, LocatorHelper $locator_helper)
 {
     parent::__construct($search_context, $annotation_manager);
     $this->_locatorHelper = $locator_helper;
 }