title: How to test with PowerMock a method which calls another private void method from the same class?
body: <p>I have a class which have some methods like in the example.</p>
  
  <pre><code>public class TestClass {
  
      public boolean aMethod()
      {
          voidMethod();
          return true;
      }
  
      private void voidMethod()
      {
          ... does something ...
      }
  
      ... other methods ...
  }
  </code></pre>
  
  <p>I want to test <code>aMethod</code> with powermock and all methods should work normally except the <code>voidMethod</code>.
  I've created a partial mock of <code>TestClass</code> to make <code>voidMethod</code> do nothing.But I don't know how to expect call of this method.</p>
  
  <pre><code>testObject = createPartialMock(TestClass.class, "voidMethod");
  expectPrivate(testObject, "voidMethod");
  </code></pre>
  
  <p>I'm getting an error on second line:</p>
  
  <blockquote>
    <p>The method expect(T) in the type EasyMock is not applicable for the arguments (void)</p>
  </blockquote>
  
  <p>How can I fix this issue?</p>