title: Static method mocked via EasyMock and Powermock getting invoked when calling EasyMock.expect()
body: <p>I am using TestNG, EasyMock and PowerMock for testing. As per the code below I am trying to mock a static method that is called from the static method under test (fetchAuthenticator). When I run the test, the executeHttpGet method gets executed when calling EasyMock.expect.</p>
  
  <pre><code>@PrepareForTest(Metadata.class)
  public class MetadataTest extends PowerMockTestCase {
  @Test
  public void testPatience(){
  PowerMock.mockStatic(HttpHelper.class);
  EasyMock.expect(
      HttpHelper.executeHttpGet(EasyMock.anyString()))
      .andReturn(
          "{\"response\":\"some_value\"}");
  PowerMock.replay(HttpHelper.class);
  
  String response = Whitebox.invokeMethod(Metadata.class,
      "fetchAuthenticator",
      "something-else",
      "somesite.com", "another-value");
  assertNotNull(response);
      }
  }
  </code></pre>
  
  <p>I found similar questions, but no answers.
  <a href="https://stackoverflow.com/questions/12084887/easymock-actual-function-gets-called-while-passing-as-an-argument-to-easymock-e">EasyMock: Actual function gets called while passing as an argument to EasyMock.expect</a></p>