title: How to mock element in an angular directive
body: <p>I have a very simple directive :</p>
  
  <pre><code>angular.module('myModule',[]).directive('myInputAutofocus', function () {
  
    return {
      restrict: 'A',
      link: function (scope, element) {            
        element.focus();
      }
    };
  });
  </code></pre>
  
  <p>How can I test this one ? I can't find a way to mock <em>element</em></p>
  
  <p><strong>EDIT</strong> : I've made a fiddle to explain my problem : <a href="http://jsfiddle.net/8qBbR/" rel="nofollow">http://jsfiddle.net/8qBbR/</a></p>