title: How to use Powermockito so that private void methods are skipped
body: <p>I need to write a test case for a class similar to the following class:</p>
  
  <pre><code>public class TestClass {
  
  public String loadBean(int i) {
      String s = null;
      if (i &lt;= 0) {
          s = "less";
          // call some webservice that we don't need to test
          callWebService(s);
      } else {
          s = "more";
      }
      return s;
  }
  
  private void callWebService(String s) {
      //Some complex code here
  
  }
  </code></pre>
  
  <p>I need to test <strong>loadBean</strong> method only, problem is  - i'm not able to skip method call to callWebService(), using PowerMock. So to explain more clearly I need to a test case which calls loadBean but do nothing when it encounters callWebService method continuing the execution flow.</p>
  
  <p>I read it on this same site that we can do it with PowerMockito but could not get it to work.</p>
  
  <p>Please help.</p>