title: How to mock only one static method and test the other
body: <pre><code>@Mocked Provider provider;
  
  public static class Provider {
      public static List&lt;Integer&gt; getStaticList() {
          return new ArrayList&lt;&gt;();
      }
  
      public static List&lt;Integer&gt; test() {
          return getStaticList();
      }
  }
  
  @Test
  public void testStatic() {
      ArrayList&lt;Object&gt; list = new ArrayList&lt;&gt;();
      list.add(1);
  
      new Expectations() {
          {
              Provider.getStaticList();
              result = list;
          }
      };
  
      assertThat(Provider.test(), JUnitMatchers.hasItem(1));
  }
  </code></pre>
  
  <p>I want to mock (with JMockit) one static method that is called within another one. How can I do that? The above test fails. The real Provider.test method is never called.</p>