title: Mock Runtime.getRuntime()?
body: <p>Can anyone make any suggestions about how best to use EasyMock to expect a call to <code>Runtime.getRuntime().exec(xxx)</code>?</p>
  
  <p>I could move the call into a method in another class that implements an interface, but would rather not in an ideal world.</p>
  
  <pre><code>interface RuntimeWrapper {
      ProcessWrapper execute(String command) throws IOException;
  }
  
  interface ProcessWrapper {
      int waitFor() throws InterruptedException;
  }
  </code></pre>
  
  <p>I was wondering if anyone had any other suggestions?</p>