title: Best practices with Mockito
body: <p>I create mocked objects and I define some rules (when <code>someMethod()</code> then <code>doSth()</code>). </p>
  
  <p>What are the best practices to make that? Create a class with such functionality returning mocked object? Or make a private static method returning mocked object ? Or make my own mocked class? </p>