title: How to mock static member variables
body: <p>I have a class ClassToTest which has a dependency on ClassToMock. 
  </p>
  
  <pre class="lang-java prettyprint-override"><code>public class ClassToMock {
  
    private static final String MEMBER_1 = FileReader.readMemeber1();
  
    protected void someMethod() {
      ...
    }
  }
  </code></pre>
  
  <p>The unit test case for ClassToTest. </p>
  
  <pre class="lang-java prettyprint-override"><code>public class ClassToTestTest {
    private ClassToMock _mock;
  
    @Before
    public void setUp() throws Exception {
       _mock = mock(ClassToMock.class)
    }
  
  }
  </code></pre>
  
  <p>When mock is called in the setUp() method, FileReader.readMemeber1(); is executed. Is there a way to avoid this? I think one way is to initialize the MEMBER_1 inside a method. Any other alternatives? </p>
  
  <p>Thanks!</p>