title: Mockito: Verify a boolean method (or other types)
body: <p><strike>I know that you can only verify void methods. But I actually ask myself why.</p>
  
  <p>I recently stumbled upon an unit test where I really need to verify that a certain call has been made. To be exact, it's "newFolder.mkdirs()".
  The behavior of this method is pretty much "voidy" in my opinion. But as a "feature" the devs provided this function a boolean return type to see whether the action was successful or not.</p>
  
  <p>Nice, but I don't care much for that in my test where I throw my mocks around. I just want to ensure that this very call was done, just like I would want to ensure that important void calls were done.</p>
  
  <p>So is there now a possibility to do that? I'm quite stuck on this, can't even imagine a workaround for that tiny problem :/ Somebody got a good, short idea?</strike></p>
  
  <hr>
  
  <p>I was totally wrong: You can verify everything. I misplaced the brackets.</p>
  
  <p>I had:</p>
  
  <pre><code>verify(newFolder.mkdirs());
  </code></pre>
  
  <p>I needed:</p>
  
  <pre><code>verify(newFolder).mkdirs();
  </code></pre>
  
  <p>Silly me ;)</p>