title: PowerMockito verify private method called x times
body: <p>I'm using <code>PowerMockito</code> and <code>spy</code> to mock private methods:</p>
  
  <pre><code>final SomeClass someClass = new SomeClass();
  final SomeClass spy = PowerMockito.spy(someClass);
  
  PowerMickito.doReturn("someValue", spy, "privateMethod1");
  final String response = Whitebox.invokeMethod(spy, "anotherPrivateMethod");
  
  // I can now verify `response` is of the correct data
  // But I also want to verify `privateMethod1` was called x times or so
  </code></pre>
  
  <p>I cannot figure out how to verify that my method was called x times.</p>
  
  <p><strong>Side note</strong></p>
  
  <p>Is it better to just make all my private methods <code>protected</code> and then extend that class in my test class and do that?</p>