title: Mock System class to get system properties
body: <p>I have a folder path set in system variable through JVM arguments in Eclipse and I am trying to access it in my class as: 
  <code>System.getProperty("my_files_path")</code>. </p>
  
  <p>While writing junit test method for this class, I tried mocking this call as test classes do not consider JVM arguments. I have used PowerMockito to mock static System class and tried returning some path when <code>System.getProperpty</code> is being called.</p>
  
  <p>Had <code>@RunWith(PowerMockRunner.class)</code> and <code>@PrepareForTest(System.class)</code> annotations at class level. However, System class is not getting mocked as a result I always get null result.
   Any help is appreciated. </p>