he <code>notify</code> service from the <a href="guide/services#creating-services">Creating Angular Services</a> example above. The unit test example uses a Jasmine spy (mock) instead
of a real browser alert.</p>
<pre><code class="lang-js">var mock, notify;

beforeEach(function() {
  mock = {alert: jasmine.createSpy()};

  module(function($provide) {
    $provide.value(&#39;$window&#39;, mock);
  });

  inject(function($injector) {
    notify = $injector.get(&#39;notify&#39;);
  });
});

it(&#39;should not 