title: grails integration test on a service: cannot invoke method on null object (grails 2.0.3 on groovy 1.8 )
body: <p>I have a dispatcher service which delegates to other services. I am attempting to test dispatching to the email service. (I have not tested the other services)</p>
  
  <p>The integration test on the dispatcher service works fine, reading data from the database to build the email, up until the point it attempts to invoke emailService.send().  I was expecting the EmailService to be injected, but it appears not to be:</p>
  
  <pre><code>class DispatchService {
      EmailService emailService
      ...
  </code></pre>
  
  <p>What am I missing?  All service, domain, and test classes were created using the Grails tools, I'm not doing anything really bizarre or custom.  I've googled extensively, but can't seem to find the solution to match this problem.</p>
  
  <p>Thanks!</p>