title: karma can I mock service but not include it
body: <p>My test is running into an error saying the following from and angular site</p>
  
  <blockquote>
    <p>Unknown provider: UserServiceProvider &lt;- UserService &lt;- ResourceService &lt;- taOptions</p>
    
    <p>Error: [$injector:unpr] <a href="http://errors.angularjs.org/1.4.10/" rel="nofollow noreferrer">http://errors.angularjs.org/1.4.10/</a>$injector/unpr?p0=UserServiceProvider%20%3C-%20User
    Service%20%3C-%20ResourceService%20%3C-%20taOptions</p>
  </blockquote>
  
  <p>When I include the service on karma.conf it tells me there are errors on the service.js and is trying to test it. Is there a way for me to mock the service without including it?</p>
  
  <p>I tried it like this but it isn't working:</p>
  
  <pre><code>inject(function(_$injector_) {
    var $controller;
    this.httpBackend = _$injector_.get('$httpBackend');
    this.rootScope = _$injector_.get('$rootScope');
    $controller = _$injector_.get('$controller');
    this.scope = this.rootScope.$new();
    $q = $injector.get('$q');
  
    this.UserService = {
  
    };
  ...
  </code></pre>