title: How to mock a static method from JMockit
body: <p>I have a static method which will be invoking from test method in a class as bellow</p>
  
  <pre><code>public class MyClass
  {
     private static boolean mockMethod( String input )
      {
         boolean value;
         //do something to value
         return value; 
      }
  
      public static boolean methodToTest()
      {
         boolean getVal = mockMethod( "input" );
         //do something to getVal
         return getVal; 
      }
  }
  </code></pre>
  
  <p>I want to write a test case for method <strong>methodToTest</strong> by mocking <strong>mockMethod</strong>.
  Tried as bellow and it doesn't give any output</p>
  
  <pre><code>@Before
  public void init()
  {
      Mockit.setUpMock( MyClass.class, MyClassMocked.class );
  }
  
  public static class MyClassMocked extends MockUp&lt;MyClass&gt;
  {
      @Mock
      private static boolean mockMethod( String input )
      {
          return true;
      }
  }
  
  @Test
  public void testMethodToTest()
  {
      assertTrue( ( MyClass.methodToTest() );
  } 
  </code></pre>