title: stubbing void methods with Spock
body: <p>I want to use Spock to create a stub for the following interface</p>
  
  <pre><code>public interface LocaleResolver {
      Locale resolveLocale(HttpServletRequest request)
  
      void setLocale(HttpServletRequest request, HttpServletResponse response, Locale locale)    
  }
  </code></pre>
  
  <p>I can stub out the <code>resolveLocale</code> method like so</p>
  
  <pre><code>LocaleResolver stubLocaleResolver = Stub(LocaleResolver)
  stubLocaleResolver.resolveLocale(_) &gt;&gt; Locale.UK
  </code></pre>
  
  <p>But I'm not sure how to stub <code>setLocale</code>. The stub should simply ignore any calls to this method.</p>