title: Spock - @Subject annotation and util | helper class that's being tested
body: <p>I got a question regarding convention of tests in Spock.</p>
  
  <p>Let us say we got <strong>A</strong> class to test, which is util class with static methods.
  Classic way to test it, would be <strong>A</strong>.method() in each test method.</p>
  
  <p>However, in Spock we got <code>@Subject</code> annotation (and also Groovy let us do that, even if said class has private constructor) and I began wondering.</p>
  
  <pre><code>@Subject util = new A()
  </code></pre>
  
  <p>And later in tests we would call the methods by <code>util.method()</code>.</p>
  
  <p>By doing that, we would achieve cleaner test. Instantly we see what's being tested. In most IDEs it would be highlighted and so. <code>@Subject</code> is very verbose annotation.</p>
  
  <p>Do you see any cons of doing tests such a way? Or there is any better way to clealny test util classes in Spock?</p>