title: Mocking private enum inside tested class
body: <p>I'm using PowerMock/EasyMock and want to test a class which has a private enum, like this:</p>
  
  <pre><code>public class GenerateMove {
  
    private Command current;
    private enum Command {
      GO, BACK, TURN
    }
  
  
    public move() {
      if (Command.GO.equals(current)) {
       // do something
      }
    }
  
  }
  </code></pre>
  
  <p>I am unable to mock the Command enum. Is there away to do so? Otherwise how can I test the <code>// do something</code> code inside <code>move()</code> method?</p>
  
  <p>Thanks.</p>