title: any(object.class) throwing null in mockito
body: <p>I have the following class:</p>
  
  <pre><code>mockStatic(Exception.class); 
  
  PowerMockito.doNothing().when(Exception.class);
  
  Exception.throwErrorIfExists(any(Object.class)); // line3
  </code></pre>
  
  <p>In exception class,method is defined as follows:</p>
  
  <pre><code>static void throwErrorIfExists(def model){
  
    if(model.hasErrors())
      throwError(model)
    }
  </code></pre>
  
  <p>The following exception is thrown at line 3: <code>Cannot invoke method hasErrors() on null object
   java.lang.NullPointerException: Cannot invoke method hasErrors() on null object</code></p>
  
  <p>How can <code>any(object.class)</code> be NULL in any circumstances because any simply means return any anything?</p>