title: How do I mock static property Groovy?
body: <p>I saw a lot of examples how to mock a static method in a class.</p>
  
  <p>I want to mock a static property of the class, that's initialized in its definition. </p>
  
  <p>Something like:</p>
  
  <pre><code>class MyClass {
     private static log = LogFactory.getLog(this)
  }
  </code></pre>
  
  <p>I want to mock log property, in order that in my test it should be null, and it should not initialize itself.</p>